I am trying to open a specific type of email attachment using my activity, the application itself is an ini file with a plain text window with the extension * .os. In the email, this file is attached as "application / octet-stream". I tried the following intent filter to catch the application with my activity:
<intent-filter> <action android:name="android.intent.action.VIEW"/> <category android:name="android.intent.category.DEFAULT"/> <category android:name="android.intent.category.BROWSABLE"/> <data android:scheme="http" android:host="*" android:pathPattern=".*\\.os"/> <data android:scheme="https" android:host="*" android:pathPattern=".*\\.os"/> <data android:scheme="content" android:host="*" android:pathPattern=".*\\.os"/> <data android:scheme="file" android:host="*" android:pathPattern=".*\\.os"/> </intent-filter>
The email application retrieves the attachment, but then tells me: "The attachment cannot be displayed." What can I do? How can I debug this?
android
zehrer
source share