I have a widget that will open the contacts list by a phone number. I am using Contacts.Intents.SHOW_OR_CREATE_CONTACT I know it s deprecated but I want this to work on android 1.6. I have a phone number to use on the lookup intent. here is the code
Intent contViewIntent = new Intent(Contacts.Intents.SHOW_OR_CREATE_CONTACT);
contViewIntent.setData(Uri.fromParts("tel", number, null));
PendingIntent contPendIntent = PendingIntent.getActivity(context, 0, contViewIntent, 0);
views.setOnClickPendingIntent(viewID, contPendIntent);
如果接触清单与相同数目有2个或2个以上联系,则该清单将开放联系清单,用户可选择联系清单。 这张作品按1.6美元计算,但是在2.0及以上显示,在姓名和从名单上挑选其中一人以发现你有错误时,仅与第1号或第2号的接触清单。
04-09 19:12:47.891: ERROR/CursorWindow(105): Bad request for field slot 0,6. numRows = 2, numColumns = 6
04-09 19:12:47.992: ERROR/AndroidRuntime(105): java.lang.IllegalStateException: get field slot from row 0 col 6 failed
我如何在上文1.6和2.0段开展工作?