Я недавно установил свое приложение (работает довольно хорошо в старой версии android) на планшете android9, но теперь получаю проблему, поскольку приложение автоматически переходит в фоновый режим. Я сделал дамп журнала и вижу такое поведение моего приложения.
03-26 15:12:55.049 I/am_on_create_called( 9134): [0,com.op.yp.MainActivity,performCreate]
03-26 15:12:55.053 I/am_on_start_called( 9134): [0,com.op.yp.MainActivity,handleStartActivity]
03-26 15:12:58.431 I/am_on_resume_called( 9134): [0,com.op.yp.MainActivity,RESUME_ACTIVITY]
03-26 15:13:05.002 I/am_on_paused_called( 9134): [0,com.op.yp.MainActivity,performPause]
03-26 15:13:05.126 I/am_on_resume_called( 9134): [0,com.op.yp.MainActivity,RESUME_ACTIVITY]
03-26 15:13:16.401 I/sysui_multi_action( 9373): [757,1391,1392,1,806,com.op.yp,1394,Landroid/content/Context;->bindServiceAsUser(Landroid/content/Intent;Landroid/content/ServiceConnection;ILandroid/os/Handler;Landroid/os/UserHandle;)Z]
03-26 15:13:16.620 I/am_on_create_called( 9373): [0,com.op.yp.MainActivity,performCreate]
03-26 15:13:16.622 I/am_on_start_called( 9373): [0,com.op.yp.MainActivity,handleStartActivity]
03-26 15:13:19.984 I/am_on_resume_called( 9373): [0,com.op.yp.MainActivity,RESUME_ACTIVITY]
03-26 15:13:26.447 I/am_on_paused_called( 9373): [0,com.op.yp.MainActivity,performPause]
03-26 15:13:26.551 I/am_on_resume_called( 9373): [0,com.op.yp.MainActivity,RESUME_ACTIVITY]
03-26 15:14:42.494 I/am_on_paused_called( 9373): [0,com.op.yp.MainActivity,performPause]
03-26 15:14:42.505 I/am_on_stop_called( 9373): [0,com.op.yp.MainActivity,sleeping]
03-26 15:15:20.005 I/am_on_restart_called( 9373): [0,com.op.yp.MainActivity,handleSleeping]
03-26 15:15:20.021 I/am_on_start_called( 9373): [0,com.op.yp.MainActivity,handleSleeping]
03-26 15:15:20.139 I/am_on_resume_called( 9373): [0,com.op.yp.MainActivity,RESUME_ACTIVITY]
03-26 15:15:49.642 I/am_on_paused_called( 9373): [0,com.op.yp.MainActivity,performPause]
03-26 15:15:49.657 I/am_on_stop_called( 9373): [0,com.op.yp.MainActivity,sleeping]
03-26 15:16:24.963 I/am_on_restart_called( 9373): [0,com.op.yp.MainActivity,handleSleeping]
03-26 15:16:24.995 I/am_on_start_called( 9373): [0,com.op.yp.MainActivity,handleSleeping]
03-26 15:16:25.155 I/am_on_resume_called( 9373): [0,com.op.yp.MainActivity,RESUME_ACTIVITY]
03-26 15:18:56.252 I/am_on_paused_called( 9373): [0,com.op.yp.MainActivity,performPause]
03-26 15:18:56.365 I/am_on_resume_called( 9373): [0,com.op.yp.MainActivity,RESUME_ACTIVITY]
03-26 15:20:05.196 I/am_on_paused_called( 9373): [0,com.op.yp.MainActivity,performPause]
03-26 15:20:05.208 I/am_on_stop_called( 9373): [0,com.op.yp.MainActivity,sleeping]
03-26 15:26:15.407 I/am_on_restart_called( 9373): [0,com.op.yp.MainActivity,handleWindowVisibility]
03-26 15:26:15.408 I/am_on_start_called( 9373): [0,com.op.yp.MainActivity,handleWindowVisibility]
03-26 15:26:15.409 I/am_on_stop_called( 9373): [0,com.op.yp.MainActivity,sleeping]
03-26 15:32:50.473 I/am_on_restart_called( 9373): [0,com.op.yp.MainActivity,handleWindowVisibility]
03-26 15:32:50.475 I/am_on_start_called( 9373): [0,com.op.yp.MainActivity,handleWindowVisibility]
03-26 15:32:50.476 I/am_on_stop_called( 9373): [0,com.op.yp.MainActivity,sleeping]
03-26 15:55:29.858 I/am_on_restart_called( 9373): [0,com.op.yp.MainActivity,handleSleeping]
03-26 15:55:29.962 I/am_on_start_called( 9373): [0,com.op.yp.MainActivity,handleSleeping]
03-26 15:55:30.200 I/am_on_resume_called( 9373): [0,com.op.yp.MainActivity,RESUME_ACTIVITY]
03-26 15:57:30.104 I/am_on_paused_called( 9373): [0,com.op.yp.MainActivity,performPause]
03-26 15:57:30.111 I/am_on_stop_called( 9373): [0,com.op.yp.MainActivity,sleeping]
03-26 15:57:39.748 I/am_on_restart_called( 9373): [0,com.op.yp.MainActivity,handleSleeping]
03-26 15:57:39.794 I/am_on_start_called( 9373): [0,com.op.yp.MainActivity,handleSleeping]
03-26 15:57:39.929 I/am_on_resume_called( 9373): [0,com.op.yp.MainActivity,RESUME_ACTIVITY]
03-26 16:00:31.276 I/am_on_paused_called( 9373): [0,com.op.yp.MainActivity,performPause]
03-26 16:00:31.321 I/am_on_stop_called( 9373): [0,com.op.yp.MainActivity,sleeping]
03-26 16:11:30.913 I/am_on_restart_called( 9373): [0,com.op.yp.MainActivity,handleSleeping]
03-26 16:11:31.147 I/am_on_start_called( 9373): [0,com.op.yp.MainActivity,handleSleeping]
03-26 16:11:31.261 I/am_on_resume_called( 9373): [0,com.op.yp.MainActivity,RESUME_ACTIVITY]
03-26 16:13:31.383 I/am_on_paused_called( 9373): [0,com.op.yp.MainActivity,performPause]
03-26 16:13:31.428 I/am_on_stop_called( 9373): [0,com.op.yp.MainActivity,sleeping]
--------- beginning of main
03-26 22:22:29.179 I/chatty ( 9373): uid=10141(com.op.yp) expire 4 lines
Может у кого-то есть идея, почему входить в систему как Sleep / RESUME_ACTIVITY et c? Есть ли решение, чтобы приложение продолжало работать.