Quantcast
Viewing all articles
Browse latest Browse all 8068

Ti.Contacts.getAllPeople() doesn't work on Android

Hey there! I am new to Titanium mobile development. Basically what I want to do is to access to the contacts deployed on the operating system to list it down and use the required properties when it is need.

Whenever I need to use the Ti.Contacts.getAllPeople() function for Android, I get this error: "V8Exception: Exception occurred at app.js:49: Uncaught Error: Permission Denial: reading com.android.providers.contacts.ContactsProvider2 uri content://com.android.contacts/data from pid=2748, uid=10044 requires android.permission.READ_CONTACTS, or grantUriPermission()"

The code totally works fine with iOS Emulator, however whenever I try to run the code for Android it appears before I can test the app.

Even the same when I try to run the Intent Cookbook code, which was supposed to work smoothly. Any suggestions?
Thanks.

Info: Titanium Studio, build: 3.2.0.201312191547 Android 4.1.2 Emulator on Mac


Viewing all articles
Browse latest Browse all 8068

Trending Articles