Android Question Avoid App Stop - High Priority Services

OliverA

Expert
Licensed User
The code I posted here (https://www.b4x.com/android/forum/threads/auto-restart-an-android-application-after-a-crash.103858/) also works inside a Service (with some slight modifications). With it, the service stops without user intervention and is available for the next intent (tested). @Erel suggested using Application_Error and I'll test that once I receive a clarification about Application_Error processing (see https://www.b4x.com/android/forum/t...application-after-a-crash.103858/#post-652597).
 

Marcos Alves

Well-Known Member
Licensed User
The code I posted here (https://www.b4x.com/android/forum/threads/auto-restart-an-android-application-after-a-crash.103858/) also works inside a Service (with some slight modifications). With it, the service stops without user intervention and is available for the next intent (tested). @Erel suggested using Application_Error and I'll test that once I receive a clarification about Application_Error processing (see https://www.b4x.com/android/forum/t...application-after-a-crash.103858/#post-652597).
Hello,

After some experiences, I developed a solution with:

- Application_Error (starter service)
- Send to a remote server the error log (using http service)
- Continue silently (or manage silently the error, using also the server analysis feedback when possible)

It's working fine and I'm creating an error_log table in our server... in the next weeks, with some time, I'll post a code snippet with an app and server side samples...

Thanks for all and specially for you @OliverA
 
Top