android finish another activity 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();
}