Because ...
Today ...
● How to build something?
● Framework(s)!
● BLE :)
Build environments ...
● Gradle○ gradle-android-scala-plugin (saturday06)
● SBT○ android-plugin (jberkel)○ android-sdk-plugin(pfn) !!!
How to startFirst 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/more” documentation
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 …● Alternatives …
○ LocalSocial, Gimbal, RadiusNetworks, Estimote, ...
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
● https://github.com/ensime● https://github.com/rolandtritsch
○ scala-android-weatherstation
Q&A
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>