数据持久化
smarthaut
android开发
展开
-
Android数据持久化的方法
数据持久化:数据可以长久的进行保存,用户可以随时的进行存储和获取。 1.文件IO(直接写入SD卡文件) 2.SQLite数据库 3.使用Preferences 4.ContentProvider ContentPrivider的主要目的是数据共享原创 2016-06-24 20:29:04 · 307 阅读 · 0 评论 -
android:screenOrientation属性
在开发android的应用中,有时候需要限制横竖屏切换。只需要在AndroidManifest.xml文件中加入android:screenOrientation属性限制。android:screenOrientation=”landscape”是限制此页面横屏显示, android:screenOrientation=”portrait”是限制此页面数竖屏显示。 [html] view pla转载 2016-06-24 20:35:44 · 234 阅读 · 0 评论