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 Fix NPE when POLLING bridge mode is used. 2014-02-18 22:11:38 -05:00
src/org/apache/cordova CB-9115 android: Grant Lollipop permission req 2015-06-10 11:53:03 -07:00
.classpath Update .classpath to make Eclipse happy (just re-orders one line) 2014-07-04 11:38:31 -04:00
.project Changing all tabs to spaces 2012-06-05 09:49:50 -04:00
AndroidManifest.xml CB-6707 Update minSdkVersion to 10 consistently 2014-05-23 11:30:58 -07:00
ant.properties CB-3: Apache source headers in callback-android 2012-02-23 11:36:08 -05:00
build.gradle gradle: Fix incorrect buildTools dependencies in framework's build.gradle 2015-01-20 10:49:19 -05:00
build.xml CB-5490: add javadoc target to ant script 2013-11-26 13:06:28 -05:00
cordova.gradle CB-8891 Add a note about when the gradle helpers were added 2015-04-22 09:53:13 -04:00
default.properties Changing all tabs to spaces 2012-06-05 09:49:50 -04:00
project.properties CB-8829 Set targetSdk to 22 2015-04-08 21:34:15 -04:00