How can I launch the 'Add Contact' activity in android

后端 未结 8 647
感情败类
感情败类 2020-11-30 00:15

Can you please tell me how to launch the Add Contact\' activity in android? Thank you.

8条回答
  •  爱一瞬间的悲伤
    2020-11-30 00:19

    These two lines do the trick:

        Intent intent = new Intent(Intent.ACTION_INSERT, 
                                   ContactsContract.Contacts.CONTENT_URI);
        startActivity(intent);
    

提交回复
热议问题