i have two activity such as test1 and test2. i want to close test2 activity in test1 activity.i need to close test2 activity in test1 activity button click. how to do it,
test1activitybutton.setOnClickListener(new OnClickListener() {
public void onClick(View v)
{
// need to close test2 activity
}
});
i need to close in another class activity as above