2012-04-03 10 views
0

Ich versuche, eine Konfigurationsdatei per E-Mail zu laden.Android - Daten aus E-Mail laden - funktioniert auf einem Gerät, nicht auf einem anderen

Mein ursprüngliches Entwicklungsgerät, ein lenovo A1 wird es perfekt lesen, aber wenn ich auf etwas versuchen, was ich entweder nicht bekommen, einen Knopf oder erhalte ich die Meldung „Keine Anwendungen, die diese Aktion durchführen können“

Ich habe verschiedene Versionen von android manifestieren versucht, einschließlich

<activity android:name=".ConfigurationActivity" android:screenOrientation="landscape" > 
    <intent-filter> 
    <action android:name="android.intent.action.VIEW"></action> 
    <category android:name="android.intent.category.DEFAULT"></category> 
    <category android:name="android.intent.category.BROWSABLE"></category> 
    <data android:mimeType="application/jcrlccip" android:scheme="content"></data> 
    </intent-filter> 
</activity> 

und

<activity android:name=".ConfigurationActivity" 
android:screenOrientation="landscape" > 
<intent-filter 
     android:label="Comfort Android Data" 
     android:icon="@drawable/icon" 
     > 
    <action android:name="android.intent.action.VIEW"></action> 
    <category android:name="android.intent.category.DEFAULT"></category> 
    <category android:name="android.intent.category.BROWSABLE"></category> 
    <data android:pathPattern=".*\\.jcrlccip" android:scheme="content"></data> 
    <data android:mimeType="application/jcrlccip" 
     android:scheme="content"></data> 
    <data android:path="*.jcrlccip"></data> 
    </intent-filter> 
</activity> 

aber ohne Wirkung, außer auf dem ursprünglichen Gerät .....

Antwort

0

Die endgültige Antwort war .....

<activity android:name=".ConfigurationActivity" android:screenOrientation="landscape" > 
    <intent-filter> 
     <action android:name="android.intent.action.VIEW"></action> 
     <action android:name="android.intent.action.SEND"></action> 
     <category android:name="android.intent.category.DEFAULT"></category> 
     <category android:name="android.intent.category.BROWSABLE"></category> 
     <data android:pathPattern="*.jcrlccip"></data> 
     <data android:mimeType="application/jcrlccip"></data> 
    </intent-filter> 
</activity> 

die pathPattern machte den Unterschied versucht, mit mime = application/octet-stream, aber ohne die pathpattern und es bot alles, was zu öffnen, aber würde nicht eigentlich alles öffnen.

0

Ich hatte ein ähnliches Problem hier Downloading attachment from g/email in Android. Ich habe festgestellt, dass ich verschiedene Filter zum Herunterladen von verschiedenen E-Mail-Clients benötigt habe. Meine App wird einen Anhang von Hotmail abholen, benötigt aber einen anderen Ansatz für den gleichen Anhang auf Google Mail.

Verwandte Themen