Exporting and importing data

Introduction

Created projects data are saved in files in mobile external memory, and may be lost if uninstalling the program, malfunction or change of equipment.

Project data (and results) created in private memory can be transferred to a public extended memory directory and thus not lost when the program is uninstalled, but can be lost in the event of malfunctions.

Export functions allow you to save project data or results by sending them to other mobile applications (for example, to save them in the "cloud").

The import functions allow to import project data files created previously by this application and exported, on your mobile or another mobile.

Project data files

Data of each project is saved in an "xml" file with a standardized name "project name-Edxx" where xx is the edition number.

Android does not take in account "case" (capital or small letter) in extended memory file names. The program does same when comparing them, in order that file names are unique in each folder and avoid file overwriting.

It does same for project names whose file names are derived. And to avoid problems when exporting files, it forbids in project names (and file names) characters that may give problems in files managing systems " \ / " ? < > ; : "

Exporting data

The export allows to save the data of a project, sending it to an application taking into account "xml " files, for instance application "Drive" that saves in the "cloud ."

More other mobile applications may launch this application to select a file to import and import it. You can for example from the application "Drive" import a project data file and save it in the "cloud".

Importing Data

If a data file has been exported, you can open this file on another mobile application, select and launch this program which will import this file.

If you have uploaded a project data file with the standardized name into the program's public directory, it will be automatically taken into account by the program.

If a project data file has been uploaded to the Downloads directory, either outside the particular directory of this application, or without the standardized name, this program can import it and move it to its private extended memory renaming it.

"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. In other cases , especially for sending mail, it is stated "application/xml" type.