简体   繁体   English

我应该在Android应用程序中使用哪种简单的数据存储区?

[英]What kind of simple datastore should I use in my android application?

I'm trying out a little android programming and I'm thinking about to do a simple tasklist application. 我正在尝试一些android编程,并且正在考虑做一个简单的tasklist应用程序。 What is better to use? 有什么更好用的? Plain textfiles or xml? 纯文本文件还是xml? And if I choose xml as a datastore, what is the API for using xml in java? 如果我选择xml作为数据存储,那么在Java中使用xml的API是什么? What is preferred? 什么是首选?

For basic info you can also store items in a key value pairs in the shared preferences 对于基本信息,您还可以将项目存储在共享首选项的键值对中

http://developer.android.com/training/basics/data-storage/shared-preferences.html http://developer.android.com/training/basics/data-storage/shared-preferences.html

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM