Questions tagged [android-application-class]

Extending Android's Application class can be very useful to maintain global state, initialise a module, and so on, before any other part of your code runs.

Android Developer Docs say:

Base class for maintaining global application state. You can provide your own implementation by creating a subclass and specifying the fully-qualified name of this subclass as the "android:name" attribute in your AndroidManifest.xml's <application> tag. The Application class, or your subclass of the Application class, is instantiated before any other class when the process for your application/package is created.

91 questions
-4
votes
1 answer

Getting null pointer exception when getting values from setting preference

In my application i have create the settings preference in xml folder and assigned it to preference manger using the method. But when im trying to get values from the SharedPreferences it's throwing null pointer exception.... public class RemindMe…
1 2 3 4 5 6
7