[英]What is the most convenient way to load/save property files in Android?
I was thinking about using the functionality built in the Properties
API then I found the AssetManager
. 我当时考虑使用
Properties
API中内置的功能,然后找到AssetManager
。 Is there some very simplistic way for loading/saving property files in Android? 在Android中加载/保存属性文件是否有一些非常简单的方法? One that doesn't involve messing with Input/Output streams.
一种不涉及混乱输入/输出流的方法。
I think Shared Preferences is good for small data. 我认为“共享首选项”适用于小数据。 http://developer.android.com/guide/topics/data/data-storage.html#pref
http://developer.android.com/guide/topics/data/data-storage.html#pref
Have you seen SharedPreferences? 您看过SharedPreferences吗? http://developer.android.com/guide/topics/data/data-storage.html#pref
http://developer.android.com/guide/topics/data/data-storage.html#pref
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.