I am trying to finish my previous activity but I don't know how to do that. I search about and how to do finishActivity() but I'm getting error. I also tried this method:
private void Finishactivity(Activity activity)
{
activity.Finish();
}
and call the method like Finishactivity(the-activity-I-want-to-close); but still getting error. How can I figure this out? I'm a beginner in C#.