public Activity currentActivity(){
  Activity activity=activityStack.lastElement();
  return activity;
}

public Activity currentActivity ( ) { Activity activity = activityStack . lastElement ( ) ; return activity ; }
get current activity from stack
