MIME Type

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

MIME Type

Postby hookmoon » Sat Jan 15, 2011 10:53 pm

Hi Everybody!

I tried to run file browser application. I got code from this 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: Select all
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?
hookmoon
Freshman
Freshman
 
Posts: 3
Joined: Fri Jan 14, 2011 12:01 pm

Top

Re: MIME Type

Postby hookmoon » Mon Jan 17, 2011 9:54 am

Nobody? :)
hookmoon
Freshman
Freshman
 
Posts: 3
Joined: Fri Jan 14, 2011 12:01 pm

Re: MIME Type

Postby hookmoon » Sat Jan 22, 2011 10:33 am

Does anybody know?
hookmoon
Freshman
Freshman
 
Posts: 3
Joined: Fri Jan 14, 2011 12:01 pm

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 5 guests