Android Question Save form before refresh

AHilberink

Active Member
Licensed User
Longtime User
Hi,

Changing softkeyboard for BT keyboard during working on a form refreshes my form and all EditText fields become empty again.

Changing from portrait to landscape during working on a form refreshes my form and all EditText fields become empty again.

Can some tell me how to handle my form in these circumstances to hold the input?

Best regards,
André
 

DonManfred

Expert
Licensed User
Longtime User
Have a look at KeyValueStore and it´s Tutorial

Or CloudKVS
 
Upvote 0

AHilberink

Active Member
Licensed User
Longtime User
Have a look at KeyValueStore and it´s Tutorial

Or CloudKVS

Thanks Manfred,

I looked at these libraries (could not find a tutorial of KeyValueStore, but read the description).

This means I have to save all fields to a KeyValueStore and restore them after a refresh?
During a refresh it goes to Activity_Resume and then an Activity_Pause as far as I can see. Is there a way to trigger the refresh?

There is no other way to save the inputs? I have a lot of fields :-(

Best regards,
André
 
Upvote 0

AHilberink

Active Member
Licensed User
Longtime User
Is there something to do with:
android:configChanges="orientation|keyboardHidden|screenSize"

or

android:freezesText="true"

to prevent reloading the form?

Best regards,
André
 
Upvote 0
Top