I have classes A, B and C. Class A sends intent to B, B runs C, C returns to B.....but then inside of the onCreate of the B class it wants the intent of Class A. But because its come from class C it does not get it but I still need the intent of class A
Any idea on how to get around this? I guess one solution might be to store the extra.getString in a database or similar?
Bundle extras = getIntent().getExtras();
newString = extras.getString("ID");
So if I've got it right:
Activty A:
Activty B
Activity C
Now: Does Activity C:
return to Activity B using finish(), or
start Activity B again?
If 1, when you return to Activity B, it will still have everything you set up when it was first created. So you need to extract everything from the intent in the onCreate of B.
If 2, you will simply need to pass the information down the chain in the intents you use for starting each activity.
If you could (a) confirm what the sequence if and (b) clarify why the above wont work, I'm sure we can move forwards.