Method 1:
you can store it in an object of a custom class (which implements Serilizable) on click of listview and pass that object via intent. Make sure :
//to pass :
intent.putExtra("MyClass", obj);
// to retrieve object in second Activity
getIntent().getSerializableExtra("MyClass");
Method 2(not recommended):
Create a static custom class and store the variables in onclick to that class instance.
for Static Class A {...}
//To pass
A.variable = "stored value";
//retrieve
String s = A.variable;
Method 3
Use SharePreferences. Recommended only if you need to remember what user clicked last time he was using the app.