I need to open "Add new contact" page in phone. I searched for relevant Android code. But i didn't get results. please somebody help me by posting the code for opening add new contact page in Android phone programatically(I just need to open alone).
Asked
Active
Viewed 44 times
0
-
I mean redirect me to add new contact page...The page which contains credentials like name, phone number, email-id soon on. – oviya rajan Oct 03 '17 at 09:45
-
You may do this using intent. Check this answer: https://stackoverflow.com/a/14278850/2166337 – npk Oct 03 '17 at 10:18
1 Answers
0
For this you have to create one activity with all the parameters you want like name, phone number etc.
If you want to open this page only then you are done, but if want to open this activity from any other activity then declare this activity in android manifest inside application tag like below:
<activity android:name="MainActivity"></activity>
After this, create Intent in your class from where you want to open this activity like:
Intent intent = new Intent(Activity1.this, MainActivity.class)
startActivity(intent)

Girish Arora
- 966
- 6
- 7