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
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
.
Context is wrong, just change:
startActivity(new Intent(this, QuestionnActivity.class));
to:
startActivity(new Intent(LoActivity.this, QuestionnActivity.class));