Your third activity calls super.onCreate()
which means mainActivityv22's onCreate()
is being called where it tries to get the extra String from the Intent. But there isnt any because this activity, the third activity wasnt started with an intent that has one.
You should remove the super.onCreate()
from your third activity and then try.
Also I dont really know why you extended mainActivityv22
. It wouldve been simpler to just extend Activity
. I cant see any code that you're reusing.
EDIT:
As Sam pointed out , I was wrong. Checking for null in mainActivityv22
's onCreate() would be your best bet then.