Android app launch

We can launch the application in two ways: 1 forms the application by pressing the "Back" button until we get to the Android main screen and launch the application, or 2nd from the application, we can click the "Device Home" button, and then we can run.

How can we distinguish them from launch? In the second type of start, onrestart will be called, onrestart will also be called in some other cases.

I want to do something in the second run.

Can someone call me how to do this ...

Thanks in advance.

+3
source share

Source: https://habr.com/ru/post/1776858/


All Articles