how to finish first activity from second activity in android code example
Example 1: how to stop activity from another activity
public static Activity fa;
onCreate()
{
fa = this;
}
Example 2: how to stop activity from another activity
onCreate()
{
FirstActivity.fa.finish();
}