保存的android用户preferences永久? [英] android save user preferences permanently?
本文介绍了保存的android用户preferences永久?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个游戏。我想游戏的用户来确定对手的用户名。我怎样才能在内部存储这些名字?我想永久地储存它们。直到应用程序的运行结束。
I am developing a game. I want the user of game to determine the opponents usernames. How can I store these names internally?? I want to store them permanently. Not until the end of the run of application.
推荐答案
有几种方法。看看开发指南课题数据存储。您的选项包括:
There are several methods. Take a look at the developer guide topic Data Storage. Your options include:
- 共享preferences
- 内部存储
- 外部存储器(例如,SD卡)
- 的SQLite数据库
- 的网络连接到服务器
这篇关于保存的android用户preferences永久?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文