English 中文(简体)
安德森——同电话号码联系人名单
原标题:Android - Show list of contacts with same phone number

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段开展工作?

问题回答

Anders 2.0有completely 管理联系的新信息预报系统(查询联系人)。 在我的发言中,我最后两度撰写了低级别接触管理文件——一次为2.0,一次为1.6,一次为下(我通过思考检查,看看是否存在联系人类别,并转而采用2.0+代码)。

我认为,你可以更好地利用安乐器的复印件,同时使用一个电梯(有电话号码匹配的固定浏览或浏览):

rel=“nofollow noretinger” http://developer.android.com/guide/topics/providers/content-providers.html

然后,如果问答双方接触,请用户选择哪些联系是适当的。

然后,你可以通过联系点(独一无二)来打开选定的接触点(避免你看到的错误)。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签