Skip to content Skip to sidebar Skip to footer

Unable To Launch Activity?

I have made some changes in my code before adding async task my app working proper its authenticate username and password from remote server but unable to launch other activity whe

Solution 1:

Converting comments to answer

By looking at the logcat we can see that the problem is at line 41 of QuestionActivity. So we know that currentGame is null.

You need to set breakpoints before that and see what is causing that to be null. You may have found that other variables/objects arenull which ends up causing the NPE.

Solution 2:

Context is wrong, just change:

startActivity(newIntent(this, QuestionnActivity.class));

to:

startActivity(newIntent(LoActivity.this, QuestionnActivity.class));

Post a Comment for "Unable To Launch Activity?"