I have a strange issue with my app on 1 phone only so far. I dont have the information on the version of Android on the phone, I just know my colleague tested it on Samsung Galaxy S5 and saw this issue.
When the app is in the background and user tries to open the app from the home screen, the app is not brought back to Front, but it is restarted, from the beginning of the app, instead of the current activity.
I havent been able to test anything, since i dont even know where to start to look for solution of the issue. Also, i cant even test any solution since i dont have the phone.
Any ideas what can be done to force if the app is in the background, to bring it to front and not restart?
EDIT:
here is the onPause method
@Override
public void onPause() {
if(this.hasWindowFocus()) {
isAudioStopped = true;
Visibility.activityPaused();
Intent serviceIntent = TestService.makeStartServiceIntent(this);
Log.d(TAG,Boolean.toString(background));
if(basePref.getValue("background", true)){
startService(serviceIntent);
}
}
super.onPause();
}