View Single Post
Old 10-22-2021, 07:13 AM   #744
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,938
Karma: 17500001
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
Quote:
Originally Posted by joel7 View Post
Apps get reloaded when the keyboard reconnects...
That's really the fault of the specific application.

When a keyboard arrives (or orientation changes) the default action in Android is to restart the app so that it can adapt to the new configuration. You can tell Android that your app can "go with the flow" and doesn't need to be restarted. I do this in every app that I write by putting this in AndroidManifest.xml
Code:
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
In your Activity in the app you can (but don't have to) react in onConfigurationChanged(). You can tell the app maker to put configChanges in or even just use ApkTool to do it yourself. If you do it yourself you have to re-sign it which may cause problems.
Renate is offline   Reply With Quote