The usual workaround is to implement an UncaughtExceptionHandler to save
some kind of flag when your app crashes,  and then check for it when your
activities start. If it's there, reset the flag and finish the activity.

The good way to do it is to make your activities restore gracefully no
matter what :)

Marina

On Fri, Nov 18, 2016 at 2:47 PM, Chairi Kiourt <chai...@gmail.com> wrote:

> Hi,
>
> I have an app that auto restarts after a crash, is there any way to
> disable this.I mean not to start automatically after the crash.
>
> Thank you in advance
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/android-developers/a4a50917-772f-428a-9c33-
> 3c4db533249b%40googlegroups.com
> <https://groups.google.com/d/msgid/android-developers/a4a50917-772f-428a-9c33-3c4db533249b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CACaNmX2ekePyC5yKPXB8bQHLk4rqnAwJdm_Z254nOnyTV%2BTvCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to