Android Code Snippet Extract all contacts from both SIM and Phone

This is a little updated version of code I found on this forum(thanks to Erel and other kind people) to display and chose a phone number from contacts, from SIM and internal phone memory.
It handles nation's prefix as well, if present on contact, by a spinner. It detects nation's prefix extracting it if it is present in canonic format "+nnn" or "00nnn".
Enjoy!!!

Mauro
 

Attachments

  • Screenshot_2017-03-07-18-37-30.png
    Screenshot_2017-03-07-18-37-30.png
    19.3 KB · Views: 596
  • allcontacs.zip
    15.4 KB · Views: 523
Last edited:
Top