Calling android native APIs from javascript functions of embedded WebView -


i blackberry developer , don't have experience in android programming.

i trying create android application have webview/embedded browser. load web page javascripts in embedded browser. there buttons on page call javascript functions. of these functions require access native apis (eg camera api). possible call native api's javascript functions or access native code of app ?

right possible in blackberry platform using javascript extension. i'm expecting similar in android.

thank you.

anyone looking answer, i've found solution based on @dtanders answer. check out: http://developer.android.com/guide/webapps/webview.html#bindingjavascript

use http://developer.android.com/reference/android/webkit/webview.html#addjavascriptinterface(java.lang.object, java.lang.string) expose java interfaces javascript running in webview


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -