[ https://issues.apache.org/jira/browse/CB-9947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nico Sap closed CB-9947. ------------------------ Resolution: Fixed I have the same issue with a native app ( recreated it) ava.lang.RuntimeException: Failure delivering result ResultInfo So it's not Cordova's fault, it could be Android 6.0 > Can't get PickContact working > ----------------------------- > > Key: CB-9947 > URL: https://issues.apache.org/jira/browse/CB-9947 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Contacts > Affects Versions: 1.1.0 > Environment: android 6.0 > Reporter: Nico Sap > Labels: android6.0, bug > Original Estimate: 3h > Remaining Estimate: 3h > > I first checked for the tests if something was wrong with my code, but there doesn't seem to be any concerning PickContact > I always have a permission error, although my AndroidManifest seems correct. > Using 1.1.0 and also tested it with 1.1.1-dev, both have the same issue. > document.addEventListener("deviceready", function () { > navigator.contacts.pickContact(function (contactPicked) { > $scope.contact = contactPicked; > }); > }); > I get the list of contacts, i can pick one. Instead of returning the ContactInfo, the app crashes and gives a permission error ( which is included) > My Android manifest looks like: > > > > > > > > > > > > > > > > > > > The error i'm receiving is : > Caused by: java.lang.SecurityException: Permission Denial: reading com.android.providers.contacts.ContactsProvider2 uri content://com.android.contacts/raw_contacts from pid=7739, uid=10141 requires android.permission.READ_CONTACTS, or grantUriPermission() > But READ_CONTACTS permission is included in my AndroidManifest.xml > PS. In my current AndroidManifest.xml i changed > > > > > So that the parent Activity uses an attribute exported:true, but that doesn't change the error. > There is a whitelist plugin in the app, but everything seems to be added when i look into config.xml > > > > > > > > > > > -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org