Volodymyr Olyinyk
Volodymyr Olyinyk

Reputation: 21

How do we can programmatically restart android app after fatal crash

I have fatal crash in third party library which use JNI. I want to do auto restart application fall. How do I programmatically restart an Android App ? I have tried to create background service monitoring app health and trying to start the app. However, as of Android 11 Google has restricted doing that: https://developer.android.com/guide/components/activities/background-starts

Upvotes: 1

Views: 396

Answers (1)

Armaggheddon
Armaggheddon

Reputation: 348

I cannot comment due to low reputation points :( so i am writing here.
You might check this other question on how to catch the exception generated in your c++ code from @kosev at this link Catch exception in Android NDK C++ code


You should change the question title to include the fact that wou want to catch the exception raised from c++ code and not Java/Kotlin code.

Upvotes: 2

Related Questions