开发者

How to save data or a set of lists in the application using titanium?

开发者 https://www.devze.com 2023-02-23 23:25 出处:网络
i\'m trying to save a list of data into the application wen ever i want to save a list that has come from internet.

i'm trying to save a list of data into the application wen ever i want to save a list that has come from internet.

i'm not saying like a bookmark

it's like keeping or saving all the lists that i want, into the phone for future reference which doesnt need any internet connection then

in short if you have any idea about android, it's 开发者_如何学Clike i want to implement shared preference in titanium.

Please help

Thank you.


http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.App.Properties-module

list = ['one', 'two', 'three'];

Titanium.App.Properties.setList('propertyList', list);

Titanium.App.Properties.getList('propetyList');

Ti.App.Properties exist beyond application sessions.

0

精彩评论

暂无评论...
验证码 换一张
取 消