Android Programming Tutorials

(Romina) #1
High-Priced Help

If you do all of that, then rebuild and reinstall the application, the Patchy


help page should show your identi.ca user name where you placed it on the


page.


Extra Credit...............................................................................................


Here are some things you can try beyond those step-by-step instructions:



  • Embed a link in the help HTML that will pop open the Browser
    application on the user's own identi.ca page

  • Have the help page optionally show the user's current location as an
    example of what would be injected into a status message. On a


location update, call a global Javascript function in the page, so it
can update the help to match the current location.

Further Reading........................................................................................


Connecting Java and Javascript in a WebView widget is part of what is covered


in the "WebView, Inside and Out" chapter of The Busy Coder's Guide to


Advanced Android Development.


260
Free download pdf