java - How to find out programmatically if a contact is editable in android -


in application building accessing contacts of mobile, need know whether contacts editable (like ones of google account) or not (like ones coming skype). haven't found related topic anywhere, see contacts application samsung able distinguish between them, has possible. or guide appreciated. lot!!

well, seems maybe asking not clear. specific use case: building app has map. can access contact list , when select contact, shown in balloon on map. if contact writeable, have button in bubble edit contact. if contact not writeable, button not appear.

you need have following permissions enable write/read authority on contacts. when have write permission, implicitly means have edit permission on contacts.

<uses-permission android:name="android.permission.read_contacts"></uses-permission> <uses-permission android:name="android.permission.write_contacts"></uses-permission> 

for complete list of available permissions, please go through developer reference

to edit contacts please refer this discussion.

for sample code please go through this , this.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -