You can get this to work from gmail, although it takes a lot of effort to figure out all the problems.
Important intent data
act=android.intent.action.VIEW dat=file:///mnt/sdcard/Download/Availability Focus.inform typ=application/octet-stream flg=0x80001 cmp=air.com.extension/.AppEntry
An intent filter that was able to capture it (some notes below)
<intent-filter> <action android:name="android.intent.action.VIEW"/> <category android:name="android.intent.category.BROWSABLE"/> <category android:name="android.intent.category.DEFAULT"/> <data android:scheme="file" android:pathPattern=".*\\.inform" android:mimeType="application/octet-stream"/> <data android:scheme="content" android:pathPattern=".*\\.inform" android:mimeType="application/octet-stream"/> </intent-filter>
Both content and file formats are required. Without a CONTENT scheme, gmail will ignore your filter. This seems like a mistake. Without the FILE scheme, gmail will throw an error stating that it does not know which application starts with the intent.
07-19 15:38:19.160: ERROR/Gmail(2220): Coun't find Activity for intent
When using both schemes, the application receives the intention for both downloaded and previewed files. They must be handled differently.
source share