Aug 16, 2018 Replies: 5 Hi I convert all code about select contact to single class easily This class need to ContactUtils. Example : Code: Dim a As ContactPicker a.Initialize(Me,"contact") a.ShowPicker Sub contact_contactchooser(contact As Contact) Log(contact) End Sub Attachments ContactPicker.bas ContactPicker.bas 1.6 KB · Views: 635 ContactsUtils.bas ContactsUtils.bas 12.1 KB · Views: 582 Click to expand...
Hi I convert all code about select contact to single class easily This class need to ContactUtils. Example : Code: Dim a As ContactPicker a.Initialize(Me,"contact") a.ShowPicker Sub contact_contactchooser(contact As Contact) Log(contact) End Sub
Star-Dust Expert Licensed User Longtime User Aug 16, 2018 #2 Put some image of the final result, it can be useful to make the idea
Pooya1 Active Member Licensed User Aug 16, 2018 #3 Star-Dust said: Put some image of the final result, it can be useful to make the idea Click to expand... It is simple process my friend I show contact list with Intent and after select,return result into class and in class i return it to user event
Star-Dust said: Put some image of the final result, it can be useful to make the idea Click to expand... It is simple process my friend I show contact list with Intent and after select,return result into class and in class i return it to user event
fbritop Well-Known Member Licensed User Longtime User Apr 24, 2019 #4 How can we achieve multiple contacts select? I have tried: Code: i.PutExtra("additional", "phone-multi") With no success
How can we achieve multiple contacts select? I have tried: Code: i.PutExtra("additional", "phone-multi") With no success
DonManfred Expert Licensed User Longtime User Apr 25, 2019 #5 fbritop said: How can we achieve multiple contacts select? Click to expand... 1. You should create a new thread for any question you have 2. I don´t think it is possible. Androids Contactpicker api return ONE Result. 3. You need to build your own solution i guess. Get a List of all Contacts using ContentResolver. Or directly get a filtered list using some filters in the Content-Resolver Query. You can find some inspiration here (it is working with Google Calendars, not with Contacts. But the principle is the same. It also works with Contacts.) Edit to add: Check ContactUtils class. It is based on contentResolver. https://www.b4x.com/android/forum/t...-access-to-the-stored-contacts.30824/#content You can get some inspiration here too i guess. Last edited: Apr 25, 2019
fbritop said: How can we achieve multiple contacts select? Click to expand... 1. You should create a new thread for any question you have 2. I don´t think it is possible. Androids Contactpicker api return ONE Result. 3. You need to build your own solution i guess. Get a List of all Contacts using ContentResolver. Or directly get a filtered list using some filters in the Content-Resolver Query. You can find some inspiration here (it is working with Google Calendars, not with Contacts. But the principle is the same. It also works with Contacts.) Edit to add: Check ContactUtils class. It is based on contentResolver. https://www.b4x.com/android/forum/t...-access-to-the-stored-contacts.30824/#content You can get some inspiration here too i guess.
R ronell Well-Known Member Licensed User Longtime User Apr 29, 2019 #6 Sasuke Sama said: im having issues using this with the phone lib they both use the " contact " var any idea how to solve? Click to expand... you can edit the class file and change the variables also, create new thread in the android question forum if you have more questions
Sasuke Sama said: im having issues using this with the phone lib they both use the " contact " var any idea how to solve? Click to expand... you can edit the class file and change the variables also, create new thread in the android question forum if you have more questions