2011-04-05 4 views
2

연락처 선택 도구를 사용하여 특정 연락처의 이름을 가져옵니다.BadParcelableException : 선택된 연락처의 이름을 가져 오는 경우 ClassNotFoundException

startActivityForResult(new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI), CONTACT_PICKER_RESULT); 

onActivityResult()에 난 그냥 할 : 에클 레어를 들어 나중에 내가 사용

final String contactName = data.getStringExtra(Intent.EXTRA_SHORTCUT_NAME); 

나는이 예외를 얻을 곳이 MOTOBLUR, 제외하고 잘 작동 :

android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.motorola.blur.provider.contacts.IdentityModel 
    at android.os.Parcel.readParcelable(Parcel.java:1883) 
    at android.os.Parcel.readParcelableArray(Parcel.java:1922) 
    at android.os.Parcel.readValue(Parcel.java:1825) 
    at android.os.Parcel.readMapInternal(Parcel.java:2008) 
    at android.os.Bundle.unparcel(Bundle.java:208) 
    at android.os.Bundle.getString(Bundle.java:1034) 
    at android.content.Intent.getStringExtra(Intent.java:3399) 

가 있는가 Motoblur에서도 잘 작동하는 이름을 얻는 또 다른 방법은 무엇입니까? Motoblur에 대한 해결 방법이 있습니까? 사전에

감사합니다, ContentResolver 잘 작동 사용

답변

2


조나스. Intent.EXTRA_SHORTCUT_NAME이 모든 전화에서 안정적으로 작동하지 않는 것 같습니다 (HTC에서 완전히 작동하지 않는다는 보고서도 들었습니다).

관련 문제