L
L
Lord Drous2017-10-20 13:41:57
Java
Lord Drous, 2017-10-20 13:41:57

How to send app close report to appMetrika?

Hello everyone, I have a task: in general, you need to send a report to appmetrika when the user closes the application at a certain stage, maybe someone had experience.
This is my idea how to do it: in the OnPause(){} method, call the reportEvent("This is an activity") method.
What do you think, how can I do it? maybe I'm thinking wrong

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
IceJOKER, 2017-10-20
@IceJOKER

onPause - speaks for itself, this is a pause, not an application close.
you can send a report to onStop()

A
aol-nnov, 2017-10-20
@aol-nnov

The Activity Lifecycle

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question