Sarath Kamisetty wrote:
> Ok thanks, just learnt to use adb and your guess is right. I see an
> error about READ_CONTACTS permission. May be I need to modify the
> manifest file.
> 
> E/AndroidRuntime(  268): java.lang.RuntimeException: Unable to start
> activity ComponentInfo{com.android.smsapp/com.android.smsapp.SMSApp}:
> java.lang.SecurityException: Permission Denial: reading
> com.android.providers.contacts.ContactsProvider uri
> content://contacts/people from pid=268, uid=10018 requires
> android.permission.READ_CONTACTS

Precisely.

Add:

<uses-permission android:name="android.permission.READ_CONTACTS" />

to your manifest, and you should be set.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 Available!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to