Hello folks,

I am developing a app where I have two possible solutions for a use-case. 
Since I am not that seasoned when it comes to Android development I would 
like to ask your opinions in this manner. 

I need to access the phones contact's and pull two or three fields which 
will be not(!) be used immediately. Two solutions came to my mind:


   1. Pull just the _ID's from contacts, store them as JSON string inside 
   the SharedPreferences and pull the fields when needed from contacts via the 
   content provider.
   
   2. Pull the fields with the _ID, store them as copy in my own sqlite and 
   sync them manually when ConentObserver notifies me of a change.

So, my main question here is, since solution 1 seems to be much more 
simpler, if there is a potential performance problem relying on the content 
provider or any other things I just don't see right now.

Thank you in advance
Chris

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/dc1fc1ef-526e-4913-87e7-4db0e21fbe67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to