由网友(要么爱要么滚)分享简介:我怎样才能在打开按钮单击事件的Android设备的联系人列表中。How can i open Android device contacts list at button click event.推荐答案试试这个code .. Try this code..yourButton.setOnClickList...
我怎样才能在打开按钮单击事件的Android设备的联系人列表中。
How can i open Android device contacts list at button click event.
推荐答案
试试这个code ..
Try this code..
yourButton.setOnClickListener(new YouButtonEvent());
class YouButtonEventimplements OnClickListener{
@Override
public void onClick(View v) {
Intent it= new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI);
startActivityForResult(it, PICK_CONTACT);
}
}
相关推荐
最新文章