Re: [android-developers] Activity and Interface

2010-01-09 Thread Android Development
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);

[android-developers] Activity and Interface

2009-11-19 Thread fala70
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()