[android-developers] Re: Custom file viewer

2011-11-07 Thread chrisn
Mike Murphy: Thanks for the reply, writing my own *second* activity is the path I will go down if I can't get this to work. I don't think that this is good general practice if the intent filter API is working as documented. It pollutes the android device with needless activities that work like f

[android-developers] Re: Custom file viewer

2011-11-05 Thread Zsolt Vasvari
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 wrote: > This is *incredibly frustrating.  I have changed my intent

Re: [android-developers] Re: Custom file viewer

2011-11-05 Thread Mark Murphy
Well, first, you want to drop the mimeType attribute, or possibly merge it into your other element. Right now, you are saying that you support *both*: -- all files with any MIME type -- files with the particular scheme/host/pathPattern of any MIME type which seems unlikely to be what you want.

[android-developers] Re: Custom file viewer

2011-11-04 Thread chrisn
This is *incredibly frustrating. I have changed my intent-filter to look like: $ 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=androi