9
這是一個奇怪的。我看到一些設備,這個崩潰報告:試圖加載聯繫人ContentProvider的ActivityNotFoundException?
android.content.ActivityNotFoundException:
No Activity found to handle Intent {
act=android.intent.action.PICK dat=content://com.android.contacts/contacts }
產生這種錯誤的意圖是:
Intent intent = new Intent(Intent.ACTION_PICK, People.CONTENT_URI); // pre-Eclair
或者:
Intent intent = new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI); // post-Eclair
該設備是簡單地報告爲 「Droid的」但我不知道操作系統版本。
這些答案似乎相關:http://stackoverflow.com/questions/3547118/accessing-the-phonebook-on-galaxy-s-crashes -the-app,http://stackoverflow.com/questions/866769/how-to-call-android-contacts-list,和http://stackoverflow.com/questions/2792166/edit-contact-code-worked- in-1-6-but-doesnt-work-on-droid-2-1 – 2012-08-19 03:31:46
請通過這個鏈接它可以幫助你http://developer.android.com/guide/topics/providers/contacts-provider.html – 2013-07-16 11:52:14