You do not have to do anything. Events will be saved and combined with the next dispatch that appears in your application (presumably the next time the user launches the application).
Please note that Google Analytics servers mark a date based on when they receive the data, and not based on when the event occurred. For example, if your users use the application for a couple of minutes a day, you may see visits that occurred on the 10th in Analytics on the 11th, etc.
Update: To find out when tracker.stop () is called, it does not send pending events at this point. They remain in the sqlite internal database and exit first when sending is called the next time your application starts. The reason that they do not start when the tracker is stopped is because it will add time to kill the Action, which will make the application less βfastβ on exit. This is also the reason you should think carefully before submitting to the onDestroy method.
Alexander Lucas
source share