开发者

Get a contact phone number

开发者 https://www.devze.com 2023-02-09 03:47 出处:网络
When i open my contact开发者_如何转开发 list i want to able to select a person and get his(her) number. At the moment i can open the contact list, also, i have a onActivityResult witch is being fired

When i open my contact开发者_如何转开发 list i want to able to select a person and get his(her) number. At the moment i can open the contact list, also, i have a onActivityResult witch is being fired when i select a person. The code is:

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    if (requestCode == PICK_REQUEST) {
        if (resultCode == RESULT_OK) {
            //get the selected person's phone number.
        }
    }
}


take a look at this other post. You will need to call startActivityForResult, and then query the result for the phone number.

0

精彩评论

暂无评论...
验证码 换一张
取 消