Scala, Android & BLE
Scala Meetup
Dublin
Jul 2014
roland@tritsch.org
Because ...
Today ...
● How to build something?
● Framework(s)!
● BLE :)
Build environments ...
● Gradle
○ gradle-android-scala-plugin (saturday06)
● SBT
○ android-plugin (jberkel)
○ android-sdk-...
How to start
First Scala App
Hello World
Tutorial One
https://github.com/rolandtritsch
scala-android-meetup
Frameworks ...
● Macroid
○ UI “only”
○ UI even nicer than Scaloid
● Scaloid
○ UI and “other” Scala-idiomatics
○ “Better/mo...
HelloWorld with Macroid & Scaloid
Tutorial Two
https://github.com/rolandtritsch
scaloid-hello-world
BLE ...
● Bluetooth Low Energy
● RFID vs. BLE (vs. iBeacon :))
● Requires at least Android 4.3
○ And even then …
● Alterna...
A simple BLE scanner
Tutorial Three
https://github.com/rolandtritsch
scaloid-beacon-scanner
References
● https://github.com/pfn/android-sdk-plugin
● https://github.com/pocorall/scaloid
● https://github.com/macroid
...
Q&A
Quiz
● Log.wtf(s”This should not happen”)
● “Hello, world!”, “hello world”, “hello, world!”
● Max length of Android Loggin...
Scala, Android & BLE - Scala Meetup Dublin - Hands on code walkthrough
Scala, Android & BLE - Scala Meetup Dublin - Hands on code walkthrough
Scala, Android & BLE - Scala Meetup Dublin - Hands on code walkthrough
Scala, Android & BLE - Scala Meetup Dublin - Hands on code walkthrough
Upcoming SlideShare
Loading in …5
×

Scala, Android & BLE - Scala Meetup Dublin - Hands on code walkthrough

1,279 views

Published on

The slides from the meetup.

Published in: Software
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,279
On SlideShare
0
From Embeds
0
Number of Embeds
17
Actions
Shares
0
Downloads
9
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Scala, Android & BLE - Scala Meetup Dublin - Hands on code walkthrough

  1. 1. Scala, Android & BLE Scala Meetup Dublin Jul 2014 roland@tritsch.org
  2. 2. Because ...
  3. 3. Today ... ● How to build something? ● Framework(s)! ● BLE :)
  4. 4. Build environments ... ● Gradle ○ gradle-android-scala-plugin (saturday06) ● SBT ○ android-plugin (jberkel) ○ android-sdk-plugin(pfn) !!!
  5. 5. How to start First Scala App Hello World Tutorial One
  6. 6. https://github.com/rolandtritsch scala-android-meetup
  7. 7. Frameworks ... ● Macroid ○ UI “only” ○ UI even nicer than Scaloid ● Scaloid ○ UI and “other” Scala-idiomatics ○ “Better/more” documentation
  8. 8. HelloWorld with Macroid & Scaloid Tutorial Two
  9. 9. https://github.com/rolandtritsch scaloid-hello-world
  10. 10. BLE ... ● Bluetooth Low Energy ● RFID vs. BLE (vs. iBeacon :)) ● Requires at least Android 4.3 ○ And even then … ● Alternatives … ○ LocalSocial, Gimbal, RadiusNetworks, Estimote, ...
  11. 11. A simple BLE scanner Tutorial Three
  12. 12. https://github.com/rolandtritsch scaloid-beacon-scanner
  13. 13. References ● https://github.com/pfn/android-sdk-plugin ● https://github.com/pocorall/scaloid ● https://github.com/macroid ● https://github.com/ensime ● https://github.com/rolandtritsch ○ scala-android-weatherstation
  14. 14. Q&A
  15. 15. Quiz ● Log.wtf(s”This should not happen”) ● “Hello, world!”, “hello world”, “hello, world!” ● Max length of Android Logging Tag ○ log.tag.<TAG> needs to be <= 32, because you want to be able to use … ■ adb shell setprop log.tag.<TAG> <LOGLEVEL>

×