[android-developers] Problem loading HTML file from android_asset in Browser
I am trying to launch the browser to show an HTML help file that is in
the assets directory of my .apk.
My code is:
Uri uri = Uri.parse("file:///android_asset/help.html");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
intent.setClassName("com.android.browser","com.android.browser.BrowserActivity");
startActivity(intent);
The browser starts up and displays the error message that it can't
find the help.html file. I've run out of ideas as to what may be wrong
- can anyone please point out where I'm doing this incorrectly?
Thanks!
Julian
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home