the difference between finish and start activity in intent in android sturio kotlin 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();
}