我正在尝试将数据列表保存到应用程序中,而我想保存来自互联网的列表。
我不是说像书签
这就像将我想要的所有列表保留或保存到手机中以供将来引用,然后不需要任何互联网连接
简而言之,如果您对 Android 有任何了解,就像我想在 Titan 中实现共享偏好一样。
请帮忙
谢谢。
最佳答案
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 存在于应用程序 session 之外。
关于titanium - 如何使用钛在应用程序中保存数据或一组列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5620566/