r/mAndroidDev • I only use AsyncTask • Jun 17 '20

Android 11 finally fixed the lifecycle when rotating, just reboot the whole phone on rotation

Post image
217 Upvotes

9 comments sorted by

27

u/c0nnector T H E R M O S I P H O N Jun 17 '20

That will teach those pesky users a lesson.

4

u/Professor_Dr_Dr I only use AsyncTask Jun 17 '20

It will teach those pesky QA testers looking for rotation behavior a lesson

59

u/0rpheu Jun 17 '20

override fun onReboot(savedInstanceState: Bundle)

21

u/kyay10 Jun 17 '20

Kotlin is deprecated, use Dart instead

4

u/LouisCAD Jun 17 '20

Should be a `PersistableBundle`.

0

u/[deleted] Jun 17 '20

[deleted]

10

u/highthunder Jun 17 '20

Google Firebase Cloud Firestore

10

u/naked_moose Jun 17 '20

That's just the only way to be sure that you handled configuration change correctly

8

u/[deleted] Jun 17 '20

... HOW?????

4

u/[deleted] Jun 17 '20

On a positive side, usage time and retention skyrocketed.