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.
精彩评论