Monday, May 30, 2011

[android-developers] Re: Moving from free app to a paid model

On Tuesday, May 31, 2011 12:45:00 AM UTC+1, Doug wrote:

On May 30, 2:19 pm, String <sterlin...@googlemail.com> wrote:
> Yes. That's why they're called shared preferences.

Um, I think they are shared SharedPreferences because there is one
instance of a particular SharedPreferences object shared among all the
components of an application.

Perhaps you're right. I've always believed it was because they could be shared between apps, but I haven't seen support for either of our positions in the documentation.

In any case, I would agree that expecting them to synchronize between processes in real time is, um, unrealistic, but they definitely do work for the simple case of one app being able to read the prefs which another has written. Both apps need the same signature, AFAIK, and you need to be careful with permissions, but I've done this a few times now.

String

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment