移行先サイト
Android
iOS
値の書き込み
bool,int,string,listの形式で書き込むことができる。
Ti.App.Properties.setBool('bool_key',true); Ti.App.Properties.setInt('int_key',-123456789); Ti.App.Properties.setString('str_key', "abcdefg&#&="); Ti.App.Properties.setString('double_str_key',"こんにちわ"); var arr = ["value1","value2"]; Ti.App.Properties.setList('list_key',arr);
値の取り出し
Ti.App.Properties.getString('double_str_key')
保存場所(Android)
/data/data/{パッケージ名}/shared_prefs/titanium.xml
titanium.xml
<?xml version="1.0" encoding="UTF-8" standalone="true"?> <map> <string name="str_key">abcdefg&#&=</string> <boolean name="bool_key" value="true"/> <string name="ti.deploytype">development</string> <string name="list_key">["value1","value2"]</string> <int name="int_key" value="-123456789"/> <string name="double_str_key">こんにちわ</string> <string name="ti.ui.defaultunit">system</string> </map>