Foreground application to backGround vice versa

Plz help me out for the below scenario
i am using 2.1.0 java client and appium version 1.4.16.1

  1. Login to app and do some action and send the app to background and make note of " Current activity name"
  2. bring back the app to Foreground with same current activity.

sample code
public void runAppIn_Background() {
try{

		try {
			driver.runAppInBackground(2);
                             sleep();
			driver.currentActivity();
		} catch (Exception e) {
		}
		
		}catch(Exception e){
		}
}

}

Note: when the app comes to the foreground in am getting another screen which was not current activity, when app sent to the background. tried with below method too still facing the same error
“driver.startActivity(app package, app activity);”