This question has already been answered:

How in Android send logs by email when the application crashes?

Reported as a duplicate by participants post_zeew , pavel , HamSter , Denis , aleksandr barakin 20 Nov '16 at 11:21 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

    1 answer 1

    It is possible to record the state of the application when the main Activity starts, and to reset this state during a normal exit. If the application crashes, the status will not be reset and you can send an email the next time you start it.

    But I highly recommend using application testing systems for such actions. For example:

    1. HockeyApp
    2. Fabric