I have 3 activities. I’m trying to get a string value from the first Activity to the second Activity. And then I want both the string value of the first Activity and the second Activity in the third activity.
How should the code look in my activities to achieve this?
My flow is first I execute the first Activity, then in the first I start the second Activity, and finally in the second I start the third Activity.
I’m getting null as a string value, without any errors in log cat.
I cant able to see the listview in dialogue in Topic.java in onPost Execute but if i use arrayadapter without i can able get the data..
Any help would be appreciated.
Currently you are not sending
SuperSecretValueandSuperSecretValue1from Second Activity to Third Activity Change your Second Activity intent as:EDIT :
if you are starting
QuestionActivityActivity on Button click then useTopic.this.getIntent().getStringExtra("SuperSecretValue"); ....for getting Intent from previous Activity or second way move yourgetIntentcode inonCreatemethod aftersetContentViewof Activity