What is inactivity activity and why is it called after launching the application?

I am working on a camera application using the camera API , and after I run the application, after about 3 seconds my activity is idle (this is my logcat when the activity starts):

18317-18317/com.example.cristi.appname W/Preview﹕ surfaceCreated() 18317-18317/com.example.cristi.appname W/Preview﹕ setFlash() 18317-18317/com.example.cristi.appname W/Preview﹕ surfaceChanged()

---->18317-18317/com.example.cristi.appname I/Timeline﹕ Timeline: Activity_idle id:android.os.BinderProxy@30f1e190 time:11392220

18317-18317/com.example.cristi.appname W/CameraActivity﹕ onPause() 18317-18317/com.example.cristi.appname W/CameraActivity﹕ onResume()

---->18317-18317/com.example.cristi.appname I/Timeline﹕ Timeline: Activity_idle id: android.os.BinderProxy@30f1e190 time:11393866

I know that this is true if the screen is locked , but why do it when my activity is open without any action? This annoys me because it affects some things that I want to do in onPause()and onResume()that are called after the first downtime . It is strange that after onResume()the second downtime appears.

- ? Allview P5 Mini Samsung Galaxy S5. Samsung, Allview . , idle does not , - Samsung.

- , ? ! !

+4

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


All Articles