You can declare a static variable in another activity or some global variable in the Application class, and then access it for any action, for example, you want to parse some object of type NewType, in Class NewActivity, from OldActivity. Do the following:
Declare a Static NewType object in NewActivity.java.
public static NewObject newObject=null;
do After that, when you call NewActivity.
NewActivity.newObject=item; Intent intent=new Intent(OldActivity.this, NewActivity.class); startActivity(intent);
source share