Skip to content Skip to sidebar Skip to footer

Calling Android Native APIs From Javascript Functions Of Embedded WebView

I am blackberry developer and I don't have any experience in Android programming. I am trying to create an android application which will have webview/embedded browser. I will loa

Solution 1:


Solution 2:

Well, if you specifically want the Camera API, it can be done. From your JS code, you can call a piece of Java code which will in turn trigger the Camera App, take a picture, return the image's URL, which your Java code can forward it to a JS method.


Solution 3:

See:

http://developer.android.com/guide/webapps/index.html http://developer.android.com/guide/webapps/webview.html


Solution 4:

Its a complete shot in the dark on my part but these might have some useful information for you.

Webview not responding to touch events

Does Android support click events in its WebView?

Also don't forget that WebViews have javascript disabled by default you'll need to explicitly set it to true in order to make it work.


Post a Comment for "Calling Android Native APIs From Javascript Functions Of Embedded WebView"