Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Effective SQLite For Android

2,817 views

Published on

第八回 #渋谷java
Effective SQLite For Android

Published in: Technology
  • Hello Shinobu Okano, i went through your slide share presentations, they looks very good, Even though I could not understand the language completely. We are a group of freelance developers specializing in mobility and web. I believe we might have very common interest and should sync up for work opportunities . What do you think ? Regards,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Hello Shinobu Okano, i went through your slide share presentations, they looks very good, Even though I could not understand the language completely. We are a group of freelance developers specializing in mobility and web. I believe we might have very common interest and should sync up for work opportunities . What do you think ? Regards,ashish
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Effective SQLite For Android

  1. 1. Android開発の 基礎と今のトレンド
  2. 2. について 話そうと 思ったんですが…
  3. 3. とあるSさんが
  4. 4. とあるSさんが 渋谷Javaの人間が そんなんで満足すると 思ってるんですか!
  5. 5. ((((;´・ω・`)))) すいません(泣)
  6. 6. これならどうだ!
  7. 7. EffectiveSQLite For Android
  8. 8. Android Engineer?
  9. 9. I’m Firefox OS Engineer!!
  10. 10. About Me Shinobu Okano ( 岡野忍) SERAKU Co.,Ltd. @operandoOS Android/ Ruby on Rails Dart/ Firefox OS/ Play Framework Twenty one years old http://osyyare.blogspot.jp/
  11. 11. Community
  12. 12. Community ゆるびぃ会 http://goo.gl/yTBpls ニコ生 http://goo.gl/63nezk 本日20時から放送かも
  13. 13. SQLite Home Page http://www.sqlite.org/
  14. 14. 軽量なRDB
  15. 15. 軽量なRDB Public Domain
  16. 16. 軽量なRDB Public Domain 早い!
  17. 17. さまざまな Platformで活躍
  18. 18. Android iOS Ruby on Rails などなど
  19. 19. SQLite3 + Android
  20. 20. DBHelper SQLiteOpenHelper SQLiteDatabase DatabaseHelper SQLiteStatement Cursor
  21. 21. Create Databases SQLiteDatabase openOrCreateDatabase
  22. 22. SQLiteDatabase openOrCreateDatabase
  23. 23. SQLiteDatabase openOrCreateDatabase DBのPermissionが644になるOS Versionが存在する DBのVersionUPが柔軟にできない
  24. 24. SQLiteDatabase openOrCreateDatabase DBのPermissionが644になるOS Versionが存在する DBのVersionUPが柔軟にできない Bad Implementation
  25. 25. Create Databases Context openOrCreateDatabase
  26. 26. Context openOrCreateDatabase
  27. 27. MODEを間違えるとやばい! DBのVersionUPが柔軟にできない 値 説明 Context.MODE_PRIVATE 呼び出し元のアプリケーションのみ読み書き可 Context.MODE_WORLD_READABLE 他のアプリケーションも読み込み可 Context.MODE_WORLD_WRITEABLE 他のアプリケーションも書き込み可 Context openOrCreateDatabase
  28. 28. SQLiteDatabase openOrCreateDatabase MODEを間違えるとやばい! DBのVersionUPが柔軟にできない 値 説明 Context.MODE_PRIVATE 呼び出し元のアプリケーションのみ読み書き可 Context.MODE_WORLD_READABLE 他のアプリケーションも読み込み可 Context.MODE_WORLD_WRITEABLE 他のアプリケーションも書き込み可 Bad Implementation
  29. 29. Create Databases SQLiteOpenHelper
  30. 30. SQLiteOpenHelper
  31. 31. SQLiteOpenHelper DBのVersionUPに柔軟に対応できる Downgradeも可能 Permissionも適切に設定される
  32. 32. SQLiteOpenHelper DBのVersionUPに柔軟に対応できる Downgradeも可能 Permissionも適切に設定される Good!
  33. 33. Create Databases SQLiteDatabase openOrCreateDatabase Context openOrCreateDatabase SQLiteOpenHelper
  34. 34. SQLiteを早く使う三原則
  35. 35. SQLiteを早く使う三原則 Transaction
  36. 36. SQLiteを早く使う三原則 Transaction Prepare Statement In Memory
  37. 37. SQLiteを早く使う三原則 Transaction Prepare Statement In Memory
  38. 38. Thank you

×