Hello all,

My open source application needs to browse local HTML files on the SD
card, and WebView is not enough because I need history and bookmarks.

I wrote the following code. It correctly opens the browser, but fails
to reach catalog.html and in fact it just opens whatever page was last
browsed:

Uri uri = Uri.parse("content://com.android.htmlfileprovider/sdcard/
myapp/catalog.html");
Intent intent = new Intent();
intent.setData(uri);
intent.setClassName("com.android.browser",
"com.android.browser.BrowserActivity");
startActivity(intent);

Any idea why it does not open catalog.html ?
Thank you very much!

Nicolas Raoul
http://nicolas-raoul.blogspot.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to