Tuesday, May 31, 2011

[android-developers] Sharing Shared preference

Hello all
I want to share data between my application and library.
Can i share or read from one Shared preference?

My thoughts:
1. pass the application context to the library?
2. in the lib: read the "app shared pref" through appContext

Is this the right way?

Thanks
Nir

--
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