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.

Wearable realm

2015.04.17 : Kansai Mobile Application Workshop in Hatena / Impression of Android Wear and Realm.

  • Login to see the comments

Wearable realm

  1. 1. Wearable Realm 2015.04.17 : Kansai Mobile Application Workshop in Hatena ChatWork, Application Development Division / Android Team Ryutaro Miyashita
  2. 2. Ryutaro Miyashita Application Development Division / ChatWork Tw: @ryugoo_ / Fb: ryutaro.miyashita
  3. 3. Welcome Realm-Java 0.80.1 私が Realm の発表をする日、または前日にアップデートがあるジンクス
  4. 4. This Monday… 今週の月曜日に…
  5. 5. My “Moto 360” is broken! 私は買ったばかりの Moto 360 を壊しました!
  6. 6. I bought second “Moto 360” あまりにも悔しかったので2つめの Moto 360 を買いました
  7. 7. Get back to the subject… 閑話休題
  8. 8. ♥Do u ♥ watch? スマートウォッチは好きですか?
  9. 9. Not a it これじゃないです
  10. 10. Android Wear
  11. 11. Moto 360 : 2014 1GHz Single Core 512MB RAM 4GB eMMC Android 5.0
  12. 12. Galaxy S : 2010 16GB eMMC Android 2.3 Near specs 1GHz Single Core 512MB RAM
  13. 13. Android Wear Android ≒
  14. 14. Does Realm run? Realm は動くのか?
  15. 15. YES!
  16. 16. Message API Message API 100KB 100KB Bluetooth
  17. 17. Realm realm = Realm.getInstance(this); realm.executeTransaction( new Realm.Transaction(Realm realm) { MyData myData; myData = realm.createObject(MyData.class); myData.setJsonString(<STRING>); } ); realm.close(); Save
  18. 18. Realm realm = Realm.getInstance(this); long count = realm.where(MyData.class) .count(); MyData myData = realm.where(MyData.class) .findFirst(); realm.close(); Queries
  19. 19. Same API as handheld 普通の Android と同じ API が動きます
  20. 20. Same API as handheld Very high speed Memory efficient Android Wear + Realm
  21. 21. How to use? どのように使うのか?
  22. 22. dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.google.android.support:wearable:1.1.0' compile 'com.google.android.gms:play-services-wearable:7.0.0' compile 'io.realm:realm-android:0.80.0' } build.gradle & sync … ready!
  23. 23. Same process as handheld project 普通の Android プロジェクトと同じ手順です
  24. 24. ♥ Android Wear Realm ♥

×