I\'m trying to create define a custom Application class as follows:
Make sure your custom class is public
, has a public
zero-argument constructor, and that the constructor chains to the superclass' constructor.
I agree with CommonsWare. If you extend android.app.Application to define custom application for your project, make sure that you have marked your class as public and public no-agrs constructor as well.
However, on android.app.Application API its mentioned that, There is normally no need to subclass Application. In most situation, static singletons can provide the same functionality in a more modular way.
Hope this will help.
Cheers.