B b4auser1 Well-Known Member Licensed User Longtime User Sep 20, 2014 #1 How to implement this code using B4A ? B4X: public void doLaunchContactPicker(View view) { Intent contactPickerIntent = new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI); startActivityForResult(contactPickerIntent, CONTACT_PICKER_RESULT); }
How to implement this code using B4A ? B4X: public void doLaunchContactPicker(View view) { Intent contactPickerIntent = new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI); startActivityForResult(contactPickerIntent, CONTACT_PICKER_RESULT); }
Erel B4X founder Staff member Licensed User Longtime User Sep 21, 2014 #2 B4X: Sub Activity_Click Dim i As Intent i.Initialize("android.intent.action.PICK", "content://com.android.contacts/contacts") StartActivityForResult(i) End Sub You will need to add the code from this code snippet: http://www.b4x.com/android/forum/threads/using-startactivityforresult-with-javaobject.40374/ Upvote 0
B4X: Sub Activity_Click Dim i As Intent i.Initialize("android.intent.action.PICK", "content://com.android.contacts/contacts") StartActivityForResult(i) End Sub You will need to add the code from this code snippet: http://www.b4x.com/android/forum/threads/using-startactivityforresult-with-javaobject.40374/
Chandrashekhar Member Licensed User Longtime User Sep 21, 2014 #4 HI, If you want to use contacts in your app, It is better to use contactutils class by erel. It is very fast and does all the tricks. or here Upvote 0
HI, If you want to use contacts in your app, It is better to use contactutils class by erel. It is very fast and does all the tricks. or here