I canβt speak for a blackberry, but on android you can do this by creating a simple activity. You will need a WebView in the layout, something like this:
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"> <WebView android:id="@+id/web_engine" android:layout_width="fill_parent" android:layout_height="fill_parent" > </WebView> </LinearLayout>
Then in your onCreate method you will need to find a link to your web view and call the download URL method with the file path in your html file.
WebView wv = (WebView) findViewById(R.id.web_engine); wv.loadUrl("file:///android_asset/HTML_FILE_NAME.html");
for this example, you will need to put your html file in the resource folder in your project. If you are trying to view your html file without creating an application, this can be trickier. On real devices, I know that you can put the html file on the SD card and navigate to it using the file manager program and open it in a standalone browser. I don't know if this will work on an emulator.
source share