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.
android-things
605
questions
36
votes
3
answers
30k
views
Powering off Android Things
Usually, to power down an Android device, you do this via the power button of course.
You can also do adb shell and reboot -p.
But in Android Things, I don't see a way to shut down the device.
If ...
16
votes
7
answers
5k
views
Android Things - How do I connect to my Raspberry Pi when I don't know the IP address
I have successfully managed to install the Android Things Dev Preview onto my Raspberry Pi.
I have a problem though. When I first started installing my own applications I was able to connect to the ...
15
votes
1
answer
9k
views
Does Android Things support the Raspberry Pi 3 model B+?
Has anyone tested Android Things on the Raspberry Pi 3 model B+ yet?
When I attempt to boot the Pi 3 B+ with an Android Things image, it remains on the initial multi-colour boot screen and nothing ...
10
votes
3
answers
6k
views
Android Things Emulator
I was wondering if there is a way to set up an emulator in Android Studio using the system image that can be downloaded from the Android Things website.
I already have a Raspberry Pi 3, but I always ...
10
votes
4
answers
7k
views
Screen orientation on Raspberry Pi 3 with Android things
I've just bought a Raspberry Pi 3 with a 7" Display touch screen and a casing.
Unfortunately, the casing can't allow me to rotate manually the screen so my apps are running upside down.
I've tried ...
10
votes
2
answers
3k
views
UART peripherals on Android Things for Raspberry Pi 3
How do I use UART peripherals on Android Things for Raspberry Pi 3?
It seems that by default it is assigned the linux console.
9
votes
6
answers
5k
views
Android Things intent for boot
When I reboot after deploying an application to Android Things the application doesn't start.
Is there a specific intent to start an application on boot?
9
votes
2
answers
3k
views
How to set wifi to Android Things without an ethernet cable or adb [closed]
I'm interested in knowing how to set the first wifi on android things (not android phone) without access to a network cable, for a fresh install.
There certainly must be a way to put the information ...
9
votes
3
answers
2k
views
Android Things video playback on Raspberry Pi
Has anyone been able to successfully play a video using Android Things on a Raspberry Pi? If so was there anything special you had to do to get it to work? If not does any one know why it isn't ...
8
votes
3
answers
12k
views
connect to Raspberry Pi 3 using adb
How do I connect w/ adb to the Raspberry Pi 3 running Android Things?
8
votes
1
answer
2k
views
Android video recorder: failed to get surface
Hi I am trying to use the camera v2 API to record video using a Raspberry Pi 3 device that uses the Raspberry Pi camera module attached to it.
I am developing this using Android Things with Kotlin.
...
7
votes
2
answers
947
views
Check if a device is running Android-Things
Is it possible to perform a runtime check to see if a device is running Android-Things?
7
votes
3
answers
3k
views
How to request permission on Android Things?
I'm trying to write to a value on AT. I've already declared required permission as follow in manifest,
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>
And try to request ...
7
votes
2
answers
771
views
OTA for Android Things
How can I update my Android Things preview 1 with preview 2? Is there an automatic OTA available or isn't this possible right now, so that I have to flash the sdcard (from my Raspberry Pi)?
7
votes
2
answers
4k
views
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:
<activity
...
android:windowSoftInputMode="stateAlwaysVisible"...
7
votes
3
answers
2k
views
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 ...
7
votes
1
answer
2k
views
Reading temperature through DHT11 using Android Things
I am using Raspberry pi3 and DHT11 sensor for temperature monitoring project.
I have following pin positions
VCC to pin no : 2
Ground to pin no : 6
Output to GPIO : BCM22 i.e pin no 15
Code that I ...
6
votes
3
answers
5k
views
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");
...
6
votes
1
answer
13k
views
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:
$ ...
6
votes
1
answer
5k
views
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 ...
6
votes
2
answers
5k
views
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:
<manifest xmlns:android="http://...
6
votes
2
answers
5k
views
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 ...
6
votes
2
answers
3k
views
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:
...
6
votes
1
answer
1k
views
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" ...
6
votes
3
answers
3k
views
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 -...
6
votes
1
answer
216
views
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: https://github....
6
votes
3
answers
662
views
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 ...
5
votes
4
answers
7k
views
How to download android things OS source code?
I could find git repository/branch for Brillio but no separate for Android things.
Is it that it is not open source yet or released for public ?
5
votes
5
answers
6k
views
How to reset default app in Android Things OS?
Yesterday I started an Android Things project and I was testing the app using Android Studio. In order to connect to the device using adb.exe, I used the IP of the android device that I saw on the ...
5
votes
3
answers
18k
views
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 ...
5
votes
3
answers
5k
views
Use and purpose of Android.local
Recently I was looking at the Android-Things SDK, and I have installed it on my Raspberry Pi device.
To connect Raspberry Pi with ADB I have used:
adb connect <ip address>:5555
But then I ...
5
votes
3
answers
2k
views
How to enable USB API in Android Things for Raspberry Pi 3
I am working on a project which involves a Raspberry Pi 3 Module B Board with Android Things OS on it. My android application running on Raspberry Pi3 needs to communicate with an external hardware ...
5
votes
2
answers
3k
views
Difference between android.intent.category.LAUNCHER and android.intent.category.IOT_LAUNCHER
I was going through the sample program of Android things and i have found 2 there.
One was having <category android:name="android.intent.category.LAUNCHER" /> and another was having <...
5
votes
3
answers
3k
views
Integrating GSM/GPRS modem with Raspberry Pi 3 with Android things
I am trying to make a module with the help of Android Things. I need to send temperature and pressure readings to a server over the internet with the help of GSM/GPRS modem. I am using Raspberry Pi 3 ...
5
votes
2
answers
2k
views
How to set a static IP in Android Things running on Raspberry Pi 3
I wish to change the Ethernet IP Address of the Raspberry Pi3 board that is running Android Things OS. Currently it automatically fetches an IP Address available in the connected network. But I wish ...
5
votes
3
answers
1k
views
Connecting to a Usb peripheral
It looks like the UsbManager is gone in the build. How do we communicate with usb peripherals now?
Things like usb->serial etc using https://github.com/mik3y/usb-serial-for-android
5
votes
4
answers
3k
views
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 ...
5
votes
2
answers
4k
views
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 ...
5
votes
3
answers
2k
views
Mount USB thumb drive to android things when starting the activity
I am trying to mount the USB mass storage device to my Raspberry Pi running the android things. I came across this answer which shows how to mount it using command line ADB shell.
But the problem is I ...
5
votes
3
answers
2k
views
Android Things GpioCallback not received
I am trying to implement the button sample from simplepio. I have made the connection as shown in schematics. After pressing the button I do not get the GPIO callback.
Code I am using is same as that ...
5
votes
2
answers
2k
views
Android Things microphone support
Does Android Things on the raspberry pi 3 support a usb microphone already?
If not I could attach a microphone to the RPi3 via an ADC (and talk to it via SPI) but can I get Android to see it as a ...
5
votes
1
answer
5k
views
How do I enable the ethernet over USB drivers on Android Things?
I have a USB dongle that uses ethernet over USB to act as a network adapter. On Ubuntu it makes use of the usbnet driver and as soon as I plug the dongle in, the OS recognizes it and gets a new ...
5
votes
0
answers
811
views
Turn off HDMI Output with Android Things on Raspberry PI 3
I'm creating an Android Things device using a Raspberry Pi 3, which will be connected to monitor. The monitor should be on all of the time, but I'd like a way to "turn off" the device (turning off the ...
5
votes
1
answer
511
views
Android things RPI3 camera hangs with image reader
Can't find a way on how to take a single picture from the camera.
While using image reader and sending capture request with TEMPLATE_STILL_CAPTURE, app just stops at this place and nothing more ...
4
votes
1
answer
4k
views
Android Things permission com.google.android.things.permission.MANAGE_INPUT_DRIVERS not found
I use RPi3 with Android Things 0.5.1. Although I have in my AndroidManifest.xml the permission:
<uses-permission android:name="com.google.android.things.permission.MANAGE_INPUT_DRIVERS" />
I ...
4
votes
4
answers
10k
views
Reboot programmatically Android Things
I want to use this code in order to reboot my RPI3 running Android Things:
public static void Reboot()
{
try {
Process proc = Runtime.getRuntime().exec(new String[]{"su", "-c", "reboot"});...
4
votes
2
answers
3k
views
Android Things and Bluetooth
As far as I read about the dev boards, every SoC is capable to use Bluetooth.
I didn't tested it yet, but can I use Android Things with a Bluetooth connection? My question is, how can I enable ...
4
votes
2
answers
461
views
How to boot Android Things 0.6.1 DevPreview in CM3L (Computer Module 3 Lite)
Actually I can boot Android Things "0.6.1 Developer Preview" in Raspberry Pi 3 (RPI3), I'm develop a project with Computer Module 3 Lite (CM3L) this have the same processor of the Raspberry Pi 3 (RPI3)...
4
votes
2
answers
2k
views
Android Things: How to exit Android Settings screen?
I succeed to show Android Date Settings by calling :
startActivityForResult(new Intent(android.provider.Settings.ACTION_DATE_SETTINGS), 0);
but I don't know how to exit, there is no cancel/update ...
4
votes
1
answer
632
views
Android Things OTA Process [closed]
I want to know process (step-by-step) Android Things handles Bundle package from OTA console. As i know, Android Things device will check OTA update every period, if Bundle from console is available ...