English 中文(简体)
安德列车监督记录仪。 电话提供者问答问题
原标题:Android CallLog.Calls provider query problem

我正试图通过使用行车监督记录仪来获得电话记录。 要求内容提供者。 然而,我对我需要做的提问几乎没有什么。 我可以提出质询,把结果装上一份清单。 但问询会退回所有类型的呼吁。

Of course I can use a switch-case and take appropriate action as per the types of call returned. But for my program I only need the outgoing call logs.

因此,我如何修改询问,只拿到离去的电话类型。 (我认为我必须使用行车监督记录仪。) 呼吁。 OUTGOING_TYPE some where? 我试图以各种方式修改询问,但我仍然有错误。 如果我试图提供电话记录仪。 呼吁。 OUTGOING_TYPE as an selected arg I have an mis as its int category and the query look for String category.

我可能失踪,但可以说出。 任何帮助都会受到高度赞赏。 谢谢。 下面我要问:

getContentResolver().query(CallLog.Calls.CONTENT_URI,null, null, null, ORDER_BY ); 
最佳回答

引申该法典:

Cursor c = getContentResolver().query(CallLog.Calls.CONTENT_URI, null,
                                      CallLog.Calls.TYPE + "=?",
                                      new String[] { String.valueOf(CallLog.Calls.OUTGOING_TYPE) },
                                      ORDER_BY);
问题回答

暂无回答




相关问题
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 ...

热门标签