IIRC, I tried doing this unsuccessfully with OFX files. I don't remember the details, but, if my recollection is right, unless the file extension is defined in android.webkit.MimeTypeMap, it won't work.
On Nov 5, 9:18 am, chrisn <[email protected]> wrote: > This is *incredibly frustrating. I have changed my intent-filter to > look like: > > <intent-filter> > <action android:name="android.intent.action.VIEW" /> > <category android:name="android.intent.category.DEFAULT" /> > <data android:mimeType="*/*"/> > <data android:scheme="file" android:host="*" > android:pathPattern=".*\\.bif"/> > </intent-filter> > > $ adb shell am start -a android.intent.action.VIEW -d > file:///mnt/sdcard/UIComposer/basicredcube.bif -n > com.nvidia.devtech.UICViewer/.UICViewer > Starting: Intent { act=android.intent.action.VIEW > cat=[com.nvidia.devtech.UICViewer/.UICViewer] dat=file:///mnt/sdcard/ > UIComposer/basicredcube.bif } > > This works fine. > > Dropping the -n {explicity component} from the equation fails. > > What is going on? > > Chris > > On Nov 4, 5:26 pm, chrisn <[email protected]> wrote: > > > > > I am having trouble getting my android system to launch my activity > > for all files with a given extension. > > > I am using OI File Manager, and trying to get my activity launched for > > all files with a given suffix (bif). > > > Here is the relevant section of my manifest: > > > <application > > android:icon="@drawable/icon" > > android:label="@string/app_name" > > > <!--We derive from native activity so we can access > > information > > about the intent the activity was launched with --> > > <activity android:name="com.nvidia.devtech.UICViewer" > > android:label="@string/app_name" > > android:screenOrientation="landscape"> > > <!-- Tell NativeActivity the name of or .so --> > > <meta-data android:name="android.app.lib_name" > > android:value="UICViewer" /> > > <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:mimeType="*/*" /> > > <data android:scheme="file"/> > > <data android:host="*" /> > > <data android:pathPattern=".*\\.bif" /> > > </intent-filter> > > </activity> > > </application> > > > And here is the output of adb logcat when I 'click' on the file: > > > I/ActivityManager( 145): Starting: Intent > > { act=android.intent.action.VIEW dat=file:///mnt/sdcard/UIComposer/ > > basicredcube.biftyp=*/* cmp=android/ > > com.android.internal.app.ResolverActivity } from pid 566 > > I/ActivityManager( 145): Displayed android/ > > com.android.internal.app.ResolverActivity: +370ms > > > All that happens is that the screen goes slightly darker than it was > > and my app doesn't appear. > > > Any thoughts as to why this may be? Or more thorough ways to debug > > this? > > > Chris- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

