Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Getting started with Android Things - Pavlo Zin`
Search
GDG Ternopil
January 21, 2017
Programming
0
78
Getting started with Android Things - Pavlo Zin`
Getting started with Android Things - Pavlo Zin`
GDG Ternopil
January 21, 2017
Tweet
Share
More Decks by GDG Ternopil
See All by GDG Ternopil
Semi supervised learning with Autoencoders by Ілля Горев
gdgternopil
1
69
Застосування ML в реальних проектах - Андрій Дерень
gdgternopil
1
98
Android Architecture Components by Ihor Dzikovskyy
gdgternopil
1
150
First look at Room Persistence by Oleksiy Sazhko
gdgternopil
1
81
Mobile Applications Architecture by Constantine Mars
gdgternopil
2
64
Tuning your SQLite with SQLDelight & SQLBrite - Mkhytar Mkhoian
gdgternopil
0
250
Speeding up development with AutoValue - Andrii Rakhimov
gdgternopil
0
71
The Mistery of Gradle Plugins - Dmytro Zaitsev
gdgternopil
0
55
Xamarin Build native Android & iOS apps with C# - Vitalii Smal
gdgternopil
0
68
Other Decks in Programming
See All in Programming
Elm 0.19.0 Changes
bkuhlmann
0
490
Netty Chicago Java User Group 2024-04-17
sullis
0
180
エンターテイメント業界で利用されるAWS
demuyan
0
210
コーンフレークから始める モデリング会話入門
ogurotakayuki
0
370
Azure OpenAI Serviceのプロンプトエンジニアリング入門
tomokusaba
3
710
Apache Hive 4 on Treasure Data
ryukobayashi
0
340
Anthropic Cookbook のおすすめレシピ
schroneko
7
980
Build Apps for iOS, Android & Desktop in 100% Kotlin With Compose Multiplatform (mDevCamp 2024)
zsmb
0
340
dbtのドメイン分割による データ基盤の改善とDigdagとの連携
sakama
0
350
try!Swift Tokyo 2024 参加報告 LT
akidon0000
1
220
Ruby Function Composition
bkuhlmann
1
330
OpenAPIを中心に考えるAPI開発入門 / Introduction to API Development with a Focus on OpenAPI
seike460
PRO
2
170
Featured
See All Featured
Product Roadmaps are Hard
iamctodd
44
9.7k
Fireside Chat
paigeccino
21
2.6k
Being A Developer After 40
akosma
57
580k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
227
16k
Embracing the Ebb and Flow
colly
80
4.1k
A Tale of Four Properties
chriscoyier
151
22k
Gamification - CAS2011
davidbonilla
76
4.6k
Why You Should Never Use an ORM
jnunemaker
PRO
51
8.6k
GraphQLとの向き合い方2022年版
quramy
32
12k
Writing Fast Ruby
sferik
621
60k
What’s in a name? Adding method to the madness
productmarketing
PRO
16
2.6k
Statistics for Hackers
jakevdp
789
220k
Transcript
Getting started with Android Things
Google’s new OS for IoT devices
Internet of Things — network of devices that collect and
exchange data
• Lightning • Locks • Security cameras • Voice assistants
• Self-driving cars • Thermostats • “Smart-everything” IoT applications
IoT at Google: recent history
Brillo and Weave introduced at I/O 2015
Weave — communication language between device and cloud
Brillo — simplified version of Android for IoT devices
None
None
Android Things is the new Brillo
Android Things is the new Brillo ¯\_(ツ)_/¯
Android Things • Available for everyone for free • Android
Studio and Android SDK • Firebase and Google Play Services • Regular updates from Google • Community • The ease and power of Android
If you can build an app, you can build a
device - Google
Project idea “Smart house” solution for simple electronic devices
Raspberry Pi 3 Model B • A 1.2GHz 64-bit quad-core
ARMv8 CPU • 802.11n Wireless LAN • Bluetooth 4.1 • 1GB RAM • 4 USB ports • 40 GPIO pins • Full HDMI port • Ethernet port • Costs ~$50
Before Andorid Things...
... there were no Android, which meant running on a
traditional Linux or Windows based OS PROS • You are in control of everything CONS • With great power comes great responsibility • You do all the hard work • You reinvent a wheel
Android Things to the rescue!
SmartHouse project Two apps For mobile and Android Things devices
SmartHouse mobile • You have list of devices • You
can turn them on or off • You can add new device • Many users can add to the same device and control it • You see when other users toggle your devices
SmartHouse for Android Things • Initialize hardware • Read events
via Firebase Realtime DB • Change the state of hardware • Listen to device state change and post events (not implemented yet)
How to create Android Things project? 1. Open Android Studio
2. Create New Project for phones/tablets 3. Setup Android Things dependencies 4. Done
Hardware side gpio = manager.openGpio(“BCM26”) gpio.setDirection(Gpio.DIRECTION_OUT_INITIALLY_HIGH) gpio.setActiveType(Gpio.ACTIVE_LOW) GPIO initialization Change
GPIO value gpio.value = newValue
Firebase DB design
None
Android Things: bad things • Setup is very inconvenient •
Developer preview has lots of bugs and some features are not available • No sign in support
Demo
None