Saving and restoring data

Introduction

Data entered for planning of days are saved in a database associated to the program, and may be lost if uninstalling the program, malfunction or change of equipment.

The save function saves the data and preferences in the form of an xml file in the mobile external memory, or to send these data to other mobile applications (for instance to save in the " cloud " ) .

Restore feature restores the preferences and the contents of the database from a save file created previously by this application on your mobile phone or another mobile.

Data saving

Saving copy in a xml file preferences and all data (tasks, events , notes, special day labels ... ) from a user-defined date .

This file is created in the extended private program memory. The user can then send this file to an application able to take into account the xml files (eg Google Drive, Gmail ), or copy in public external memory, rename or delete.

Data restoring

You can restore in a mobile preferences and data saved by the program.

This restore overwrites the data and preferences present in the mobile by those of the selected save file .

You can see an outline of the contents of the file before starting the restore.

The restoration can be launched :

  • when the program runs, displaying the restore screen and selecting a file in the directories where the program places or copy savings,
  • opening an xml file in another program and choosing "Day planning" in the choices, the program is launched and displays an outline of the file (if correct) .

"Xml" file and " mime type "

The project data is written to a "xml" file. This file uses the encoding selected by default with Java in the creation of "xml" files, the UTF-8 code .

The encoding of the file is entered in the first line of the file , so it is not an ordinary text file and to transmit it, its "mime type" file is normally "application/xml" .

Unfortunately, many applications do not take into account this "mime type" and the coding inscribed in the file, and see the xml files as text files ( "mime type" "text/xml") ,do not take into account the coding part of the files, and read with another code (often the ISO 8859-1 code) , where problems with some characters (accented letters in particular) .

To allow you to still use these applications (particularly the application "Drive" ), the "xml" file is specified "text/xml " type for sending to an application.