Android: new Intent() starts new instance with android:launchMode="singleTop"
i got single top to work as per the link above, but I am having a hard time putting "extras" in the intent and then performing a function on my original activity.. is this possible?
Intent I= new Intent(context, away.class);
I.putExtra("number", number);
I.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP);
this snippet is from my broadcast receiver and it refers back to my main class.. in my main class my code is like so..
Intent I = getIntent();
int number = I.getIntExtra("number", -1);
so my question is the following.. how can i get my main activity to evaluate the number i send back and then fire a function when my receiver class fires it?