简体   繁体   English

在Android中加载/保存属性文件的最便捷方法是什么?

[英]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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Android中将数据保存的最合适方法是什么 - What is the most suitable way to save that data in android 在不同环境下构建软件包的最便捷方法是什么? - what is the most convenient way to build package for different environments? 最方便的方法来初始化一个对象数组 - Most convenient way to initialize an array of objects 为什么RMap接口没有removeAll方法? 批量删除最方便的方法是什么? - Why RMap interface not have a removeAll method? and what's the most convenient way to do batch delete? 在Spring 5.1.0中加载和在属性源之间切换的最优雅的方法是什么? - What's the most elegant way to load and switch between property sources in Spring 5.1.0? 如何在Android中加载和保存文件? - How to load and save files in Android? 连续编辑文本文件的便捷方法是什么 - what is a convenient way of continuously editing a file of text 获取LinkedHashMap中最后一个键或值的最方便方法是什么? - Most convenient way to get the last key or value in a LinkedHashMap? 在 Java 中将枚举值转换为字符串数组的最便捷方法 - Most convenient way to convert enumeration values to string array in Java 在Android中授权用户的最安全方式是什么? - What is the most secure way to authorize an user in Android?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM