Quote:
Originally Posted by MarjaE
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.