General preferences between actions

Still pretty new for android, wondered if anyone could help ...

I have an application that has several actions. Each operation has a general preference file for storing strings for this activity. Each preference has its own name.

However, I want any activity to be able to read all preferences ....

I think that if I rename them all to the same preference name, what preference will be available from any activity in my application?

Or do I need to create a separate class to handle all the settings?

Many thanks

+3
source share
1 answer

Here is a very good tutorial that answers your questions.

http://saigeethamn.blogspot.de/2009/10/shared-preferences-android-developer.html

+1

All Articles