Top Banner
Introduction with Raspberry Pi 3 +RobertoOrgiu @_tiwiz +MatteoBonifazi @mbonifazi +DanieleBonaldo @danybony_
19

Android things intro

Apr 12, 2017

Download

Engineering

Matteo Bonifazi
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Android things intro

Introduction with Raspberry Pi 3

+RobertoOrgiu@_tiwiz

+MatteoBonifazi@mbonifazi

+DanieleBonaldo@danybony_

Page 2: Android things intro

If you can build an app, you can build a device.

Page 3: Android things intro

Android ThingsBuild connected devices for a wide variety of consumer, retail, and industrial applications.

● Build connected devices using familiar tools, such as Android SDK and Android Studio

● Google Play Services & Google Cloud ● Flashable image + SDK (Developer Preview) Android

Things

Page 4: Android things intro

The framework

Page 5: Android things intro

Things support library● Peripheral I/O ○ API GPIO, PWM, I2C, SPI, UART

● User Driver API ○ Inject hardware events into the framework Things

Support Library

Page 6: Android things intro

Behaviour changes● Missing core packages (ContactsContract,

MediaStore, Settings etc.) ● Displays are optional ● Subset of Google Play Services available ● No runtime permissions ● No notifications Behavior Changes

Page 7: Android things intro

NOT SUPPORTED!!!!!VoicemailContract

DownloadManager

Settings

MediaStore

Telephony

CalendarContractDocumentsContract

UserDictionary

Page 8: Android things intro

SUPPORTED!!!!!Firebase *

Nearby

FIT

Location

Instance ID

CastMobile Vision

Drive

Places

Page 9: Android things intro

Displays are optionalAndroid Things does not require a display

● Supports graphical user interfaces using the same UI toolkit

● Does not include the system status bar or navigation buttons.

● Even without display, activities are still a primary component of your app

Page 10: Android things intro

Key Points

● Permissions are not supported since UI is not required.

● Declare permission in the AndroidManifest.xml● Notifications are no supported since SystemBar is not

required

Page 11: Android things intro

Developer Preview 2Date: February 2017 Build Number: NIG40

● USB Audio support ● Bluetooth is currently disable● Access to peripheral I/O from C/C++ code● USB APIs are currently disabled.

Page 12: Android things intro

Compatible Device

Page 14: Android things intro

Going forwardHelpful Linkhttps://goo.gl/lXnDZz

Android Helpful Linkhttps://developer.android.com/things/hardware/index.htmlhttps://developer.android.com/things/sdk/index.html

Page 15: Android things intro

Raspberry Pi 3 Model B

Page 16: Android things intro

SetupOverview

● Use usual tools to flash the MicroSD● Connect to the router via Ethernet ● Connect via WiFi with procedure or sample app● Connect to adb over WiFi● Profit

Page 17: Android things intro

Demo time!(thanks to Daniele)

Video of the demos available at https://www.youtube.com/playlist?list=PLxssZMVR8OKdA7DprupP3mUuEXixO6zHD

Page 18: Android things intro

Going forward - 2Raspberry Pi 3 setuphttps://developer.android.com/things/hardware/raspberrypi.html

Connect to WiFihttp://bit.ly/android-things-wireless

Repositoryhttps://github.com/danybony/sample-button

Page 19: Android things intro

+MatteoBonifazi@mbonifazi

Thank You!+RobertoOrgiu@_tiwiz

+DanieleBonaldo@danybony_