How to call Android contacts list AND Select one phone number from its details screen?

前端 未结 6 1232
余生分开走
余生分开走 2020-12-01 03:06

I have read the already posted solutions, but they dont tell how do I use system\'s contact details screen to select any ONE number to use? I am developing an sms sending an

6条回答
  •  我在风中等你
    2020-12-01 03:32

    Try this code,i am sure it will work

    Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
                intent.setType(ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE);
                startActivityForResult(intent, PICK_CONTACT);
    

提交回复
热议问题