I call startActivity to transfer data from one activity to another using the activity context in the outer class.
This is one example of how I create an intent to send:
public static Intent createSearchIntent(Context context, Class<?> cls) { Intent i = new Intent(ACTION_SEARCH, null, context, cls); return i; }
This is how I start the action:
mContext.startActivity(mIntent);
EDIT: Sorry, I was wrong about what was going on. Activity is not destroyed when I call startActivity, however the activity that I send the intent always has the onCreate method, so I assume that a new instance of the action is created, and not returning to the paused / stopped.
How can I change it so that I can just return to a paused / stopped action?
source share