Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Put the file in the /assets directory, you can access it with the file:///android_asset/ directory.</p> <p>Instead of putting the html in code the assets folder is where you can put static data files such as HTML and its related CSS, images, and JavaScript files, etc. Then you can use <a href="http://developer.android.com/reference/android/webkit/WebView.html#loadUrl%28java.lang.String%29">WebView.loadUrl()</a>. This has the advantage of not having to be in code with Java String escapes and cumbersome editing. You will be able to create the file(s) separately, in your favorite web project editor, then copy and paste them. If you need to edit the file at runtime you can still load the file from the assets directory and still not have to worry about Java String escapes and cumbersome editing. Then apply the edits and pass to <a href="http://developer.android.com/reference/android/webkit/WebView.html#loadData%28java.lang.String,%20java.lang.String,%20java.lang.String%29">WebView.loadData()</a>.</p> <p>To help debug this problem implement <a href="http://developer.android.com/reference/android/webkit/WebViewClient.html#onLoadResource%28android.webkit.WebView,%20java.lang.String%29">WebChromeClient.onLoadResource</a> and check out the <a href="http://developer.android.com/guide/webapps/debugging.html#WebView">console message tutorial</a>. </p> <p>Don't forget to use <a href="http://developer.android.com/reference/android/content/pm/PackageManager.html#getPackageInfo%28java.lang.String,%20int%29">PackageManager.getPackageInfo()</a> to check if flash is available. If its not you can give the user the option to <a href="http://developer.android.com/guide/publishing/publishing.html#marketintent">download it from the market</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload