15

Is there a way to disable android application automatic restart after a crash (Android 2.2)? Application crashes and after it android restarts application. It seems that android tries to restore activity back stack and it causes issues because all data which was received from the server on login is gone.

UPDATE: my application starts with login screen on which it loads some data from server and in case of restart after crash no login is done

I see that there is simmilar question but without solution

Community
  • 1
  • 1
robert
  • 496
  • 4
  • 18
  • Id like to know the answer to this question too... – Ted Oct 18 '11 at 12:31
  • 2
    I too have been searching for an answer to this. We have startup code in our Launch Activity, and when the auto-restart takes place, it seems to go directly to crashed Activity without going through the Launcher. Startup code is thus not called, and we crash again...and again...and again. – gnichola Aug 02 '13 at 19:22

1 Answers1

1
  • It has a simple solution after crashing if your activity is restarting then check at start point that this activity has all required data of login or not if it has not all the data then redirect it to login activity.
bindal
  • 1,940
  • 1
  • 20
  • 29