View Single Post
Old 06-15-2022, 08:03 AM   #5
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 3,977
Karma: 18026955
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
Quote:
Originally Posted by MarjaE View Post
It also causes apps to restart whenever I disconnect or reconnect the keyboard.
Android is too enthusiastic about thinking it needs to restart apps on the slightest change in "configuration". The logic is that if you change from portrait to landscape or any change (like connecting a keyboard) your app needs to reload all its resources. I consider that overkill. Ultimately it's up to application itself.

That's why I put this in AndroidMainfest.xml:
Code:
    <activity
      ...
      android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode|navigation">
This doesn't mean that you have to ignore configurations changes. It just means that your app doesn't need to automatically restart.

If the app is open source you can modify/build/sign it yourself.
Renate is offline   Reply With Quote