Adsenseバナー

2011年3月4日金曜日

Backup/Restore Function - "Shopping necessary for us now"

Here, I explain the Backup/Restore Function.

The backup function of This application output data to a CSV file.
The restore function restore data from the file.
Use this at the following time.

(1) Before greatly changing the catalog (The re-doing is able even if it makes a mistake)
(2) When you uninstall this application program once (I'll be waiting for your return.)
(3) When you change the smartphone (As export/import function)
(4) When you want to give your catalog to someone (As export/import function)

The object of the backup is only data of items, categories, and memo.
Settings of each screen ("Type of Display Memo" and order of sorting, etc.) is not included.
Other notes exist in "3. CAUTION". Please use this function after often reading that and understanding the content.

Then, let's try.


1. Backup
Menu Screen
Press the Menu key at the Menu Screen, and select "Backup/Restore".

Backup/Restore Dialog
"Backup/Restore Dialog" is displayed.
"Last Backup Time" is blank at first.

Push "Backup Button".
The confirmation dialog is displayed, and when you push the OK button, the CSV file is written.

The CSV file is created at "(Root of SD card)/ymgcsng/shp.csv".
The root of SD card is "/sdcard" or "/mnt/sdcard" according to the model.


2. Restore

Backup/Restore Dialog
Again, select "Backup/Restore" from menu and display the Backup/Restore Dialog.
"Last Backup Time" is displayed at this time.

Push "Restore Button".
The confirmation dialog is displayed, and when you push the OK button, the CSV file is read.
When reading the file finishes, data returns to the one at the time of the backup.


3. CAUTION
(1) The object of the backup is only data of items, categories, and memo. Settings of each screen is not included.
(2) Categories of the same name are merged as the same category.
If you want to use the category of the same name by all means, change into the alias once before it backs up, and return it to former name after restoring.


4. Edit and Import (Advanced)
AS the backup file is a CSV file, it is possible to edit it with the CSV editor and the text editor.
Therefore, to register a lot of items, it can be easier to edit the CSV file directly than registering one by one from the application program.
However, take great care when you edit the CSV file so that the data edit by the hand work may cause no mismatch of data.

+Procedure
(1) Send the file "(Root of SD card)/ymgcsng/shp.csv" to a PC etc.
(For example, File synchronization software between a PC and a smartphone, File Manager Application for android, and so on)

(2) Edit the CSV file with a PC.
* The file encoding is UTF-8.

(3) Send the edited file to a Android device and put it to "(Root of SD card)/ymgcsng/shp.csv".
* If you change the file encoding at (2), return it to UTF-8.


+Attribute
AttributeFormatNotes
Item NameTextRequired. If this is blanck, this line is ignored.
Add to Shopping ListNumberSet "1" if it is displayed in the shopping list.
Regular StockNumberSet "1" if its stock is controled.
Stock AmountNumbercircle:2 triangle:1 cross:0
Is BoughtNumberSet "1" if it is checked in the shopping list.
Default PositionNumberorder in its category (from 0)
Guide PriceNumber
PlaceText
Default Position of PlaceNumberorder when not sorting (from 0). The first one is used when there is a default position different in the same place. It is tail when blank.
Expiration DateDaterefer to NOTICE(4)
MemoText
One-Time MemoText
CategoryText"***" when blank
Default Position of CategoryNumberorder when not sorting (from 0). The first one is used when there is a default position different in the same category. It is tail when blank.

+NOTICE
(1) Don't replace it because the order of the column is fixed.
(2) The first head line is skipped as a header. (However, the number of columns is checked.)
Don't delete the first line.
(3) Now, Warning about the line that was not able to be read doesn't be displayed.
(4) The date format is different by locale.
The following table is an part of them.

localeFormatSample(year:2011 month:March day:1st)
United StatesM/D/YY3/1/11
United KingdomDD/MM/YY01/03/11
GermanyDD.MM.YY01.03.11
ItalyDD/MM/YY01/03/11
ChileDD-MM-YY01-03-11
AustraliaD/MM/YY1/03/11
GreeceD/M/YYYY1/3/2011
Koreayy. M. d11. 3. 1
SpainD/MM/YY1/03/11
NetherlandsD-M-YY1/03/11
CroatiaYYYY.MM.DD2011.03.01
FranceDD/MM/YY01/03/11
CroatiaYYYY.MM.DD2011.03.01


0 件のコメント:

コメントを投稿