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

get MIME type

hookmoon

Lurker
Hi everybody,

I'm beginner android develeper. And I have some questions. I hope you can help me :)

I tried to run file browser application. I got code from one site . I have - I cannot open files. I think it happens because I have to set right mime type to Intent. BTW this code don't work:

Code:
Intent i = new Intent(android.content.Intent.ACTION_VIEW );
i.setData(Uri.parse("file://" + file.getAbsolutePath()));
startActivity(i);
Can anybody explain me how fix this problem?
 
Back
Top Bottom