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:

Android Discuss mailing list

Android Developers mailing list

jQTouch mailing list

PhoneGap mailing list

Figure 8-6. If the user attempts to install an app from an unknown source without having checked the appropriate setting, he will be prompted to change the setting or cancel the installation process

A Attention

Your phone and personal data are more vulnerable to attack by applications from unknown sources. You agree that you are solely responsible for any damage to your phone or loss of data that may result from using these applications.

1

Figure 8-7. When the user first enables the Unknown Sources option, he'll be presented with a confirmation dialog that warns him about the implications

Android reference for WebView

Android reference for WebChromeClient

Android reference for WebViewClient

Android reference for WebSettings

* > 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 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!

APPENDIX

0 0

Post a comment