Unobtainius Active Member Licensed User Longtime User May 14, 2021 #1 I have a tablet that sits in a dock In general the dock just supplies power to the tablet When the tablet is removed from that dock my B4XPages application seems to be killed and restarts as if for the first time This does not happen when connected to a normal power supply and plugging it in and unplugging it Has anyone else come across this behaviour? I cant see a solution to this other than continuously storing the application state and checking that on initialisation of the main activity, then restoring all gathered variables and flicking through screens to put the user back to where they were when they undocked the tablet. Any suggestions or requests for further information appreciated
I have a tablet that sits in a dock In general the dock just supplies power to the tablet When the tablet is removed from that dock my B4XPages application seems to be killed and restarts as if for the first time This does not happen when connected to a normal power supply and plugging it in and unplugging it Has anyone else come across this behaviour? I cant see a solution to this other than continuously storing the application state and checking that on initialisation of the main activity, then restoring all gathered variables and flicking through screens to put the user back to where they were when they undocked the tablet. Any suggestions or requests for further information appreciated
TILogistic Expert Licensed User Longtime User May 14, 2021 #2 Some time ago something similar happened to me, the solution was to check the configuration of the tablet so that the energy saving is not activated and eliminate the APP process. And I think it eliminates some processes that are doing on energy consumption, as in mobile phones. Upvote 0
Some time ago something similar happened to me, the solution was to check the configuration of the tablet so that the energy saving is not activated and eliminate the APP process. And I think it eliminates some processes that are doing on energy consumption, as in mobile phones.
Unobtainius Active Member Licensed User Longtime User May 14, 2021 #3 Thanks @oparra that's an avenue I will pursue. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 14, 2021 #4 Add this to the manifest editor: Code: SetActivityAttribute(Main, android:configChanges, "uiMode") Upvote 0
TILogistic Expert Licensed User Longtime User May 14, 2021 #5 information: <activity> | App architecture | Android Developers Declares an activity (an Activity subclass) that implements part of the application's visual user interface. All activities must be represented by {@code } elements in the manifest file. Any that aren't declared there aren't seen by the system… developer.android.com UiModeManager | Android Developers developer.android.com Upvote 0
information: <activity> | App architecture | Android Developers Declares an activity (an Activity subclass) that implements part of the application's visual user interface. All activities must be represented by {@code } elements in the manifest file. Any that aren't declared there aren't seen by the system… developer.android.com UiModeManager | Android Developers developer.android.com
Unobtainius Active Member Licensed User Longtime User May 17, 2021 #6 Erel said: Add this to the manifest editor: Code: SetActivityAttribute(Main, android:configChanges, "uiMode") Click to expand... Worked like a charm, thanks everyone Upvote 0
Erel said: Add this to the manifest editor: Code: SetActivityAttribute(Main, android:configChanges, "uiMode") Click to expand... Worked like a charm, thanks everyone