Sorry to resurrect a zombie thread, but I thought it better than starting a brand new one and having people say "use the search feature!"
I am trying to achieve the same result as wizion was in his example code. I have the file-browser application and I want it to open files based on their filetype.
Now there are two ways I can think of this being done:
1) Filter the file extension and attempt to open each file in the correct program
- I would have to write filters for every file extension under the sun
- There is always the chance that a file is really a .zip file but named with .png... which may break the opening application
2) Let Android decide what File type it is and then set the new Intent's MIME-type data to be a certain value:
- Will I have to register 100+ different MIME Types? (wouldn't be good for interoperability)
- How do I register MIME types?
- How do I resolve MIME types in the <intent-filter> ?
I know this is an old thread, but hopefully someone has figured this out by now and can point me in the right direction. I am also of the opinion that Intent's and Intent-Receivers/Intent-Filters don't have a lot of simple-to-understand documentation available... which makes the novices entry into Android a little bit harder.
Anyways, love the work you are doing with the forums, +-, I have found the forums to be a valuable resource.