You can't close previous activity in current activity. It only can be closed by itself.
But you can return data to previous activity. And in event handler OnActivityResult of previous activity, you can do close action.
This sample will be helpful for you. https://code.msdn.microsoft.com/How-to-close-activity-d51941c8
code below shows how to close previous activity.
In previous activity:
Intent intent = new Intent(this, typeof(RegisterActivity));
//for get result, we should use method StartActivityForResult
//the second param is the request code, it is the ID of this request, it should be >= 0
StartActivityForResult(intent, 1);
In current activity:
Intent intent = new Intent(this, typeof(RegisterActivity));
intent.PutExtra("result", "Success");
SetResult(Result.Ok, intent);
Finish();
//when back to login activity, the OnActivityResult event will be trigger.
And go back to previous activity:
protected override void OnActivityResult(int requestCode, [GeneratedEnum] Result resultCode, Intent data)
{
base.OnActivityResult(requestCode, resultCode, data);
//when regester activity retrun data, it will be execute
if (requestCode == 1 && resultCode == Result.Ok)
{
string result = data.GetStringExtra("result");
if (result == "Success")
{
Finish();
}
}
}
For your second question:
Just use this:
System.exit(0);