illvm
illvm

Reputation: 1346

Android equivilent of application.config?

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.

Upvotes: 0

Views: 611

Answers (2)

Ryan Alford
Ryan Alford

Reputation: 7594

Are you taking about configurable settings? If so, the SharedPreferences is what you want. If I am not mistaken, the SharedPreferences are 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.

Upvotes: 1

keyboardP
keyboardP

Reputation: 69372

The AndroidManifest.xml file may be of use. I'm quite new to Android development, but from tutorials and documentation, I find that the use of XML Values and such are quite commonplace. However, for application bindings and details, the AndroidManifest file is key.

Upvotes: 0

Related Questions