Questions tagged [android-things]

Android Things is an operating system for the Internet of Things based on the Android OS. It supports common peripherals like GPIO, SPI, I²C and UART with a single headed or headless app. When asking a question, don't use the Android tag unless it is common for both operating systems. It is a light weight version of Android OS, specially design for IOT devices.

The Android Things console will stop supporting new projects on January 5, 2021, and will be turned down for all existing projects on January 5, 2022. For more details, visit the FAQ page.

  • New APIs for IoT devices
  • Turnkey hardware solutions
  • Low barrier to entry
  • Build products at scale

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

Official documentation:

Android Things Official Web Site

Android Things SDK Overview

Android Things Release Notes

Supported Hardware Platforms

Official Repositories:

Official GitHub profile

User-space drivers

Peripheral Driver Samples

605 questions
7
votes
2 answers

How to show soft keyboard on Android Things?

I'm trying to show soft keyboard on Android Things, Raspberry Pi 3. I tried the methods below, but not succeeded so far: and
ierturk
  • 452
  • 6
  • 22
7
votes
3 answers

How to read analog data from GPIO, Android-things

Tried to read analog data from gpio, but only see a way which returns signal strength as LOW or HIGH (boolean). Couldn't find any solution in the documentation and in code references. Is it even possible for now?
6
votes
2 answers

Android thing: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/things/pio/PeripheralManager;

Android thing run time exception: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/things/pio/PeripheralManager; Manifest file:
happy_coding
  • 1,064
  • 1
  • 13
  • 24
6
votes
3 answers

PeripheralManagerService throws NoClassDefFoundError

I have the following code in my app to access PeripheralManagerService: PeripheralManagerService service = new PeripheralManagerService(); Gpio ledGpio; try { ledGpio = service.openGpio("BCM6"); …
devunwired
  • 62,780
  • 12
  • 127
  • 139
6
votes
1 answer

What's the recommended oem partition size for an Android Things product?

While creating another Android Things product with the Android Things Console i've been wondering again what oem partition size to choose. The info for this setting is "Must be between 32 and 512 MB" which is quite a range to consider. While my…
Alx.
  • 168
  • 9
6
votes
3 answers

Why does pressing one button trigger handler for both

I am running Android Things 0.4 on a Raspberry Pi. I was following this tutorial to the letter: https://developer.android.com/things/training/first-device/peripherals.html Once I go the first button working, I decided I wanted to add a second…
maddesa
  • 1,014
  • 7
  • 18
6
votes
2 answers

How can i tell if a peripheral is connected to GPIO?

I want to be able to detect when a peripheral sensor is NOT connected to my Raspberry Pi 3. For example, if I have a GPIO passive infrared sensor. I can get all the GPIO ports like this: PeripheralManagerService manager = new…
Blundell
  • 75,855
  • 30
  • 208
  • 233
6
votes
1 answer

What's the .driver-metadata file used for in Android Things?

I've noticed in the Android Things contrib-drivers repo there's a few of these .driver-metadata files (one in each different driver folder). Does anyone know what they're for? Example:…
Xavi Rigau
  • 1,421
  • 13
  • 17
6
votes
3 answers

Android Things: take a screenshot

How do you take a screenshot via ADB for Android Things? I have tried: adb shell screencap -p /sdcard/screen.png adb pull /sdcard/screen.png adb shell rm /sdcard/screen.png and adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png
Quintin Balsdon
  • 5,484
  • 10
  • 54
  • 95
6
votes
1 answer

Android Things: Set screen resolution

I have a small screen attached to my Raspberry Pi and according to the documentation for the screen: Write the image to a TF card and append the following lines to the config.txt file which is located in the root of your TF…
Quintin Balsdon
  • 5,484
  • 10
  • 54
  • 95
6
votes
1 answer

Setting wifi ssid with a space in it

I am trying to setup the wifi on my android things raspberry pi following the documentation. My Ssid contains a space in the name let's say "my ssid". I tried to put quotes around it like this: $ adb shell am startservice \ -n…
Distwo
  • 11,569
  • 8
  • 42
  • 65
6
votes
2 answers

Android Things with Rasp3 7 inch touchscreen

I have Android Things OS image installed for my Rasp3 and successfully booted up and log in to shell using adb, but lcd display is upside down with my 7 inch touchscreen display. I wonder if there is config like lcd_rotate=2 in /boot/config.txt on…
Kurosawa Hiroyuki
  • 1,217
  • 2
  • 14
  • 22
5
votes
4 answers

Is there a way to access or control raspberry pi GPIO pins using flutter app running on android things?

I am trying to build a project based on IoT with flutter, android things, and raspberry pi. For that, I need to access raspberry pi GPIO pins through my flutter app. Firstly I have installed android things os onto the raspberry pi and connect a…
5
votes
3 answers

INSTALL_FAILED_MISSING_SHARED_LIBRARY Error When Trying To Run Android App

I've never made an Android app before and I'm this isn't a great start. I made a blank project on Android studios as a test and tried to run the program on my Huawei P33 phone. When I attempt to build and install the program, I get the following…
Afi Toetuu
  • 51
  • 1
  • 1
  • 2
5
votes
2 answers

Webview loadurl crashing

When trying to load a url in my Android Things webview the page initially loads, then crashes the UI with an error message pointing towards the IoT FrameworkPackageStubs. I am using a Raspberry Pi on Dev Preview 5.1 which supports Webviews and…
DomHDD
  • 53
  • 1
  • 3
1
2
3
40 41