public void finishActivity(){
  Activity activity=activityStack.lastElement();
  finishActivity(activity);
}

public void finishActivity ( ) { Activity activity = activityStack . lastElement ( ) ; finishActivity ( activity ) ; }
finish current activity from stack
