Is there an Android equivalent of .NET’s application.config? I am currently using a values XML file for a similar effect, but this doesn’t seem to be the right approach. I looked into using SharedPreferences, but I need to access some settings outside of activities.
Is there an Android equivalent of .NET’s application.config? I am currently using a values
Share
Are you taking about configurable settings? If so, the
SharedPreferencesis what you want. If I am not mistaken, theSharedPreferencesare not for a specific Activity, it’s for your entire application(widget, activity, service, etc.), or at least it can be. If you use the same file name in all parts of your application, then it will be.