Building Android Apps with HTML, CSS, and JavaScript, 2nd Edition
by Jonathan Stark, Brian Jepson, Brian MacDonald
Further Reading
If you’d like to dig deeper into the mechanics of the Android SDK, the best place to start is the excellent online documentation available at http://developer.android.com/. Here are some other resources that I find useful and refer to often:
Note
The Android references in the list above are interesting only if you want to start digging around in the PhoneGap source code or maybe write your own native HTML app wrapper. WebView is the primary class and it’s used to display HTML; by default, it doesn’t support JavaScript, browser widgets (e.g., location bar, back/forward buttons), or error handling.
The other three classes extend the WebView in
various ways. WebChromeClient adds support for JavaScript dialogs,
favicons, titles, and progress indicators. WebViewClient adds support
for some useful event listeners
like onFormResubmission(), onPageStarted(),
and onPageFinished(). Finally,
WebSettings gives you access to the WebView settings state with methods
such as getDatabaseEnabled() and setUserAgentString().
Again, you won’t need to worry about these unless you want to get into the Java code under the hood.
Now get out there and make some great Android apps!
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access