Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/202.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Android:Contacts Phone.TYPE_Java_Android_Android Contacts - Fatal编程技术网

Java Android:Contacts Phone.TYPE

Java Android:Contacts Phone.TYPE,java,android,android-contacts,Java,Android,Android Contacts,我需要一点帮助。。我只需要获取此联系人列表中的手机号码 使用这段代码,我提取了所有的数字,取而代之的是我只需要移动类型..并在列表中显示它们。 帮帮我,提前谢谢你 代码: ps:Phone.TYPE手机为int 2。将选择和选择G设置为以下内容: selection="ContactsContract.Contacts.IN_VISIBLE_GROUP =? and Phone.TYPE=?"; selectionArgs=new String[]{"1", "2"}; selection="

我需要一点帮助。。我只需要获取此联系人列表中的手机号码

使用这段代码,我提取了所有的数字,取而代之的是我只需要移动类型..并在列表中显示它们。 帮帮我,提前谢谢你

代码:


ps:Phone.TYPE手机为int 2。

将选择和选择G设置为以下内容:

selection="ContactsContract.Contacts.IN_VISIBLE_GROUP =? and Phone.TYPE=?";
selectionArgs=new String[]{"1", "2"};
selection="ContactsContract.Contacts.IN_VISIBLE_GROUP =? and Phone.TYPE=?";
selectionArgs=new String[]{"1", "2"};