load html file from raw resources in browser

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

load html file from raw resources in browser

Postby rosserl » Fri Dec 31, 2010 12:36 pm

i want to load an html file from raw resources in the browser via action_view intent.
is that possible? (i know how to put it into a webview, but i want it to be in the browser.)

i tried
Code: Select all
Uri uri = Uri.parse("android.resource://package.name/raw/htmlfilenamewithoutextension");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);

- that crashes the app.
rosserl
Freshman
Freshman
 
Posts: 2
Joined: Fri Dec 31, 2010 12:30 pm

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: Google [Bot], MSNbot Media and 3 guests