• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
山高我为峰
博客园    首页    新随笔    联系   管理    订阅  订阅
2016年8月24日
Avoiding memory leaks
摘要: Android applications are, at least on the T-Mobile G1, limited to 16 MB of heap. It's both a lot of memory for a phone and yet very little for what so 阅读全文
posted @ 2016-08-24 14:44 山高我为峰 阅读(208) 评论(0) 推荐(0)
Persisting Data to the Device
摘要: Persisting Data to the Device Edit PagePage History Overview The Android framework offers several options and strategies for persistence: Shared Prefe 阅读全文
posted @ 2016-08-24 14:08 山高我为峰 阅读(265) 评论(0) 推荐(0)
inserting a large number of records with SQLiteStatement.
摘要: Below is a demo application I wrote that creates 100 records programmatically, inserts them using one of two methods, and then displays the time the o 阅读全文
posted @ 2016-08-24 12:28 山高我为峰 阅读(303) 评论(0) 推荐(0)
Managing SQLite Database
摘要: Approach #1: Use a Singleton to Instantiate the SQLiteOpenHelper Declare your database helper as a static instance variable and use the Singleton patt 阅读全文
posted @ 2016-08-24 12:11 山高我为峰 阅读(217) 评论(0) 推荐(0)
Easier SQL with Cupboard
摘要: Overview Cupboard is a way to manage persistence in a sqlite instance for your app. It was written by Hugo Visser. His talk on the library can be foun 阅读全文
posted @ 2016-08-24 11:41 山高我为峰 阅读(311) 评论(0) 推荐(0)
Local Databases with SQLiteOpenHelper
摘要: Overview For maximum control over local data, developers can use SQLite directly by leveraging SQLiteOpenHelper for executing SQL requests and managin 阅读全文
posted @ 2016-08-24 11:02 山高我为峰 阅读(286) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3