Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Google Developer Days Poland - Android Things -...
Search
Rebecca Franks
September 06, 2017
Technology
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Google Developer Days Poland - Android Things - The IoT Platform for everyone
Rebecca Franks
September 06, 2017
Transcript
46 slides
None
None
extension IoT embedded
powerful intelligent secure
Android SDK Play Services Firebase Android Studio Cloud Platform
No Play Store Deploy OTAs Subset of APIs Custom Hardware
Single Purpose Device
None
None
None
SoM Architecture Google Managed BSP
Android Framework Hardware Libraries Linux Kernel Apps User Drivers
• • • •
None
None
None
None
None
Button GPS PWM Servo RGB LED Strip Temperature Sensor Capacitive
Touch Buttons GPIO PWM I2C SPI UART I2S
None
None
None
None
None
//Automatically added in app level build.gradle compileOnly 'com.google.android.things:androidthings:...'
//Automatically added in AndroidManifest.xml <application ...> <uses-library android:name="com.google.android.things"/> <activity ...>
<!-- Launch activity automatically on boot --> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.IOT_LAUNCHER"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </activity> </application>
//Automatically added in AndroidManifest.xml <application ...> <uses-library android:name="com.google.android.things"/> <activity ...>
<!-- Launch activity automatically on boot --> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.IOT_LAUNCHER"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </activity> </application>
//Import required dependencies, buttons etc implementation 'com.google.android.things.contrib:driver-button:0.3'
button = new Button("BCM6", Button.LogicState.PRESSED_WHEN_LOW); button.setOnButtonEventListener(new Button.OnButtonEventListener() { @Override public
void onButtonEvent(final Button button, final boolean pressed) { ledGpio.setValue(pressed); } }); // in onDestroy() button.close();
button = new Button("BCM6", Button.LogicState.PRESSED_WHEN_LOW); button.setOnButtonEventListener(new Button.OnButtonEventListener() { @Override public
void onButtonEvent(final Button button, final boolean pressed) { ledGpio.setValue(pressed); } }); // in onDestroy() button.close();
button = new Button("BCM6", Button.LogicState.PRESSED_WHEN_LOW); button.setOnButtonEventListener(new Button.OnButtonEventListener() { @Override public
void onButtonEvent(final Button button, final boolean pressed) { ledGpio.setValue(pressed); } }); // in onDestroy() button.close();
//Get access to the pin PeripheralManagerService service = new PeripheralManagerService();
ledGpio = service.openGpio("BCM21"); ledGpio.setDirection(Gpio.DIRECTION_OUT_INITIALLY_LOW); ledGpio.setValue(true); //Close in onDestroy() ledGpio.close();
//Get access to the pin PeripheralManagerService service = new PeripheralManagerService();
ledGpio = service.openGpio("BCM21"); ledGpio.setDirection(Gpio.DIRECTION_OUT_INITIALLY_LOW); ledGpio.setValue(true); //Close in onDestroy() ledGpio.close();
//Get access to the pin PeripheralManagerService service = new PeripheralManagerService();
ledGpio = service.openGpio("BCM21"); ledGpio.setDirection(Gpio.DIRECTION_OUT_INITIALLY_LOW); ledGpio.setValue(true); //Close in onDestroy() ledGpio.close();
None
None
@devunwired
@blundell_apps @ataulm
None
DatabaseReference onlineRef = firebaseDatabase.child(".info/connected"); DatabaseReference isPowerOnRef = firebaseDatabase.child("/online"); onlineRef.addValueEventListener(new ValueEventListener()
{ @Override public void onDataChange(final DataSnapshot dataSnapshot) { if (dataSnapshot.getValue(Boolean.class)) { isPowerOnRef.setValue(true); isPowerOnRef.onDisconnect().setValue(false); } } });
DatabaseReference onlineRef = firebaseDatabase.child(".info/connected"); DatabaseReference isPowerOnRef = firebaseDatabase.child("/online"); onlineRef.addValueEventListener(new ValueEventListener()
{ @Override public void onDataChange(final DataSnapshot dataSnapshot) { if (dataSnapshot.getValue(Boolean.class)) { isPowerOnRef.setValue(true); isPowerOnRef.onDisconnect().setValue(false); } } });
@alvaroviebrantz
None
None
Hands-on with Android Things and Creating Your Own IoT Devices
Renato Mangini, Jonathan Koren
None
goo.gl/1gQ9Uo Give Feedback On This Session
More Decks by Rebecca Franks
See All by Rebecca Franks
Custom Drawing in Compose - Londroid December 2022
riggaroo
0
330
Android Studio - What's new 2020
riggaroo
0
200
Getting Started with MotionLayout - Async Android 2020
riggaroo
2
2.6k
Mobile Era 2019 - Tips for Building Custom Views on Android with Canvas APIs
riggaroo
2
380
Over ❤️ Kotlin - How we've used Kotlin to build a Mobile Design App
riggaroo
2
7.1k
Tips for Building Custom Views on Android with Canvas APIs
riggaroo
2
840
In a World of Pure Android Animation 🍭🍫
riggaroo
3
800
Building your Personal Brand - IWD Johannesburg 2019
riggaroo
5
390
How to write a great Conference Proposal - Global CFP Day - Johannesburg 2019
riggaroo
4
620
Other Decks in Technology
See All in Technology
ポケモンバトルのAIエージェント
koji_kawamura
0
330
AIフレンドリーなGenerative UIをJSXで
uhyo
2
1.1k
想定外の利用がプロダクトの価値を広げる
lycorptech_jp
PRO
0
140
フロントエンドのテストカバレッジは 100%強制がいい
bengo4com
7
4.2k
全てを疑え!非自明な挙動と異常系から考える堅牢なカスタムコントローラ開発入門(CNDW2026)
lycorptech_jp
PRO
0
120
Amazon ECS ネットワークモード選びに悩まない ~検証を通じて見えたネットワークモードの選び方~ / 20261114 Masaki Okuda
shift_evolve
PRO
1
120
Go でトランザクション、どう書いてますか?
knwoop
2
680
AIが学べる子供の夏休みの自由研究教材を作ったが空振りだった話
yoshimura_datam
0
130
生成AIによる情報システムへのインパクト (2026年11月版)
taka_aki
0
130
AWS初心者のAIエンジニアが、 論文サーベイエージェントを AgentCoreで動かしてみた
dirard12
0
110
Amazon EFS のマルウェアスキャンをClamAV で自前実装したら苦労した話
mtmtfactory01
0
140
Kiro Crew の Conductor mode: 1 つのチャットに渡したゴールを、コンダクターがワーカーに分けて任せる
inariku
PRO
1
150
Featured
See All Featured
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
350
The Pragmatic Product Professional
lauravandoore
37
7.5k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.9k
HDC tutorial
michielstock
2
1k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.3k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.5k
Docker and Python
trallard
47
4.3k
A Soul's Torment
seathinner
9
4k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
590