Yes use the Context to open the shared preferences. On Tue, May 31, 2011 at 9:21 AM, nirm <nirmi...@gmail.com> wrote:
> 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+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en