For passing stuff from Activity-A to Activity-B, use a bundle and pass it in
the intent while starting the target activity.
Intent intent = new Intent(ActivityA.class, ActivityB.class);
intent.putExtra("name", "myName");
intent.putExtra("age", 24);
I've a problem to solve about pass reference between objects Activity.
Suppose follow situation with 3 class and 1 interface:
I don't know how pass the reference of MyEvents (_engine) to ActivityB
from ActivityA::StartActivityB()
public interface MyEvents {
public abstract void MakeThis()
2 matches
Mail list logo