Open a local htm file in mobile browser

nad

Active Member
Licensed User
Longtime User
Hi,
I am trying to open default browser (not a webview) with

Dim p As PhoneIntents
StartActivity(p.OpenBrowser("file:///android_asset/example.htm"))

but no luck it gives an ActivityNotFoundException. Wondering if the android_asset is only available for the app and not for the rest of the phone?

How would you do it?

Alternatively is there a way to do a loadhtml(string) and send it to a browser intent?

Thanks and regards,
 
Top