android.app.Application cannot be instantiated due to NullPointerException

I had exactly the same error, although with other and more simpler code than yours. I found out that the problem occurred only if I didn’t close the app in the emulator after re-run it from eclipse. So if I close it before run it from eclipse, everything works fine. But since I am really new to android, I have no clue why this is so. I previous test apps this was never a problem.

Leave a Comment