Load And Save Form State Automatically In Delphi XE7 Firemonkey On Android And IOS

Delphi XE7 Firemonkey Save Load Restore Form State Android IOSDeveloper Daniele Spinetti has released a new TForm class helper which loads and saves the state of the form in Delphi XE7 Firemonkey. One of the new features in XE7 on Android is a OnSaveState event which is occurs when a form is about to go to the background on mobile or be closed on the desktop. Daniele’s helper class adds a load and save serialization function for TForm and it’s child objects. Basically what this means is if the user entered a bunch of information on your form and then received a phone call on your mobile device it could save the state of all that entered information automatically. When the user comes back to the app it will load up that state information again and it will be like they never left. The information gets serialized and saved in JSON format. You can simply include the unit in your uses clause and then call the load and save functions. The helper class should work on Android, IOS, Windows, and OSX plus in Appmethod. Here is an example of the usage:

And here is a sample from the source code of the different field types that it saves:

Head over and download the free helper class for automatically saving form state in Delphi XE7 Firemonkey.

Mirror: You can also download the helper class archive here.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Load And Save Form State Automatically In Delphi XE7 Firemonkey On Android And IOS by Delphi XE5 XE6 XE7 XE8 10 Seattle Berlin Firemonkey, Delphi Android, Delphi IOS is licensed under a Creative Commons Attribution 4.0 International License.

One Response to Load And Save Form State Automatically In Delphi XE7 Firemonkey On Android And IOS

  1. Pingback: Ten Tips For Building Stunning Professional Android Apps With Delphi XE7 Firemonkey | Delphi XE5 XE6 XE7 Firemonkey, Delphi Android, Delphi IOS

Leave a Reply

Show Buttons
Hide Buttons
Read previous post:
Delphi XE7 Firemonkey OCR Library Tesseract Android IOS
Optical Character Recognition (OCR) In Delphi XE7 Firemonkey On Android And IOS

Developer Erik Salaj from Winsoft has released his OCR wrapper component for Delphi XE7 Firemonkey. OCR stands for optical character...

Close