cordova-android/framework
Volker Braun eb70f05168 CB-9115 android: Grant Lollipop permission req
This patch overrides onPermissionRequest so that getUserMedia can be
used inside the browser.

Since a hybrid app has to request permissions anyways via
AndroidManifest.xml, I think it is unnecessary to have any further
configuration for onPermissionRequest. Anything that the app is allowed
to do should be possible from the JS side. Hence all requests are
granted. This enables getUserMedia (and WebRTC) on Android Lollipop,
without resorting to crosswalk.

The docs say that request.grant has to be called from the UI thread, but
don't explicitly spell out whether onPermissionRequest is called from
the UI thread. I think that this is so, the WebChromeClient of course
makes its calls from the UI thread unless otherwise noted. So there is
no need to post a runnable to the UI thread.

This closes 178
https://github.com/apache/cordova-android/pull/178
2015-06-10 11:53:03 -07:00
..
.settings
src/org/apache/cordova CB-9115 android: Grant Lollipop permission req 2015-06-10 11:53:03 -07:00
.classpath
.project
AndroidManifest.xml
ant.properties
build.gradle
build.xml
cordova.gradle CB-8891 Add a note about when the gradle helpers were added 2015-04-22 09:53:13 -04:00
default.properties
project.properties CB-8829 Set targetSdk to 22 2015-04-08 21:34:15 -04:00