• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Facing problem using Intents..

Nilesh Tupe

Lurker
Jan 20, 2011
4
0
I am working on file manager application.
I want to launch particular application when user clicks on particular file from the list..
I tried it using Intents

i.setAction(Intent.ACTION_VIEW);
i.setData(Uri.fromFile(f));
i.setType("image/jpg");
startActivity(i);

I tried this program but it is giving some problems.
After clicking on a file it is showing list of possible applications than can handle this file like for image it is showing gallery,astro image viewer etc

but after selecting gallery it is giving exception for gallery application and not handling the file.


what additional things need to be done..?
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones