Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Background Execution LimitsのAndroid Pの変更点?

Background Execution LimitsのAndroid Pの変更点?

Victor Lee

July 26, 2018
Tweet

More Decks by Victor Lee

Other Decks in Programming

Transcript

  1. ݄ࠒʹɺಥવͷΫϥογϡϨϙʔτ͕ಧ͘ ‣ ʮ3FQSP4%,ͷTFSWJDF͕ىಈͰ͖ͳ͍ʯ ‣ ʮΞϓϦ͸όοΫάϥ΢ϯυʹ͋Δʯ ‣ ͔͠͠ɺ͜ͷTFSWJDF͸PO3FTVNFͷͱ͖ʹىಈ͍ͯ͠Δ ‣ ͜ͷλΠϛϯάʹΞϓϦ͕όοΫάϥ΢ϯυʹ͍Δ͜ͱ͸ɺ͋Γ͑Δͷ ͔ʜʁ

    ‣ "OESPJE1ͷFNV࣮ػͷͲͪΒͰ΋࠶ݱ͠ͳ͍ʜ ‣ ௐࠪ͸೉ߤͨ͠ʜ java.lang.RuntimeException: Unable to resume activity {*****/*****.MainActivity}: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=*****/ io.repro.android.ReproService }: app is in background uid UidRecord{3d93b8d u0a308 TPSL bg:+2m19s542ms idle change:cached procs:1 seq(0,0,0)}
  2. ͻΒΊ͖ͦͷ̍ ‣ 1ݶఆͷܗ੻ android.app.ActivityThread.performResumeActivity(ActivityThread.java:3773) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3805) at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecut

    or.java:145) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1797) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6642) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java: 493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
  3. ͻΒΊ͖ͦͷ̍ ‣ 1ݶఆͷܗ੻ android.app.ActivityThread.performResumeActivity(ActivityThread.java:3773) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3805) at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecut

    or.java:145) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1797) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6642) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java: 493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) Android O·Ͱͳ͔ͬͨ
  4. ͻΒΊ͖ͦͷ̎ ‣ JEMFNPEFݶఆ java.lang.RuntimeException: Unable to resume activity {*****/*****.MainActivity}: java.lang.IllegalStateException:

    Not allowed to start service Intent { cmp=*****/ io.repro.android.ReproService }: app is in background uid UidRecord{3d93b8d u0a308 TPSL bg:+2m19s542ms idle change:cached procs:1 seq(0,0,0)} Optimize for Doze and App Standby - https://developer.android.com/training/monitoring-device- state/doze-standby What is idle mode in Android - https://stackoverflow.com/questions/11310871/what-is-idle- mode-in-android
  5. ͻΒΊ͖ͦͷ̎ ‣ JEMFNPEFݶఆ java.lang.RuntimeException: Unable to resume activity {*****/*****.MainActivity}: java.lang.IllegalStateException:

    Not allowed to start service Intent { cmp=*****/ io.repro.android.ReproService }: app is in background uid UidRecord{3d93b8d u0a308 TPSL bg:+2m19s542ms idle change:cached procs:1 seq(0,0,0)} Screen OFFͰ࠶ݱʂ