android-things

Connecting Raspberry Pi running Android Things to wifi

↘锁芯ラ 提交于 2019-12-10 23:14:57
问题 I've been trying to connect to my Raspberry Pi running Android Things to wifi but to no avail. I've followed this guide to connect to Wifi. I had connected my Pi via ethernet port to get the IP address and then was able to connect via adb connect Android.Local . But when starting the WifiSetupService via the below command adb shell am startservice \ -n com.google.wifisetup/.WifiSetupService \ -a WifiSetupService.Connect \ -e ssid <Network_SSID> \ -e passphrase <Network_Passcode> and then

How to run TensorFlow Inference on Android Things for example classifying images?

时光总嘲笑我的痴心妄想 提交于 2019-12-10 22:06:00
问题 Is TensorFlow supported on Android Things? Can TensorFlow Android samples be ported to run on Android Things? If so, what’s the simplest way to do it? 回答1: The short answer: Yes, you can indeed run TensorFlow on embedded devices running Android Things such as Raspberry Pi 3. We have ported the TensorFlow image classification app to Android Things. It is available at: https://github.com/androidthings/sample-tensorflow-imageclassifier. The long answer: In order to run TensorFlow you first need

Android Things Emulator

大城市里の小女人 提交于 2019-12-10 02:04:00
问题 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 have to plug it into the tv which is not very practical at all. That's why I'm asking. 回答1: You don't need to plug the Raspberry Pi into a TV for it to work for Android Things. The Pi will still work without a HDMI cable connected. If you do want to create a UI you can use a normal emulator and in

How to authenticate to a Firebase database using Android Things?

人盡茶涼 提交于 2019-12-08 04:55:52
问题 I am starting to experiment with Android Things and I am trying to connect my app to a Firebase Realtime Database in a secure way. The problem is that Firebase Authentication is not available in Things because it requires user interaction. I don't want to leave my data public, so is there a way to authenticate to a Firebase Database using something like an API key? 回答1: On Android Things, you can still do anonymous auth and email/password auth. With email/password, you can create a special

The device GattServer stops advertising after connecting to it

隐身守侯 提交于 2019-12-08 04:39:04
问题 This is the link to the GATT Server sample for Android Things on GitHub: https://github.com/androidthings/sample-bluetooth-le-gattserver Setting up the server on RPi-3 is easy enough. What I do not understand is why the GATT server stops advertising once you have connected to then disconnected from the device (BLE connect). ...gattserver I/GattServerActivity: BluetoothDevice CONNECTED: 67:2F:1A:B4:1F:86 ...gattserver D/BluetoothGattServer: onConnectionUpdated() - Device=67:2F:1A:B4:1F:86

Set Android Things time zone

*爱你&永不变心* 提交于 2019-12-08 01:52:48
问题 After installing Android Things on a Raspberry Pi, time is not correct. My time zone is GMT+2, and using date +%Z I see RPi's time zone is GMT. How can I set time zone? 回答1: Update (based on Michal Harakal's comment): Since Developer Preview 6 TimeManager class provides access to device settings related to time (NB! TimeManager requires <uses-permission android:name="com.google.android.things.permission.SET_TIME" /> ). You can use .setTimeZone() method of for time zone set: private void

Webview loadurl crashing

瘦欲@ 提交于 2019-12-07 11:24:21
问题 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 OpenGL but have no idea why my very simple application seems to be crashing. The code for it is as follows @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); WebView

Android things UsbDevices

被刻印的时光 ゝ 提交于 2019-12-06 14:08:08
问题 I am developing with Android Things on rpi3 . I have a problem working with usb devices(pendrive) in my Raspi3 on Android things platform 1.0 Versión, i have been able to detect Usb(pendrive) Files, and copy files to them from my sd Card. I use ' com.github.mjdev:libaums:0.5.5 ' library, and I cannot work with all kind of usb devices.I have 3 pendrives which are FAT32, and i can only use one, the others report me an error message, as soon as i plug them into mi rpi3, i get this messages:

Android Things filesystem

一笑奈何 提交于 2019-12-06 09:55:39
I am building this app on android things. I want to be able to give it access to media files on a USB stick or maybe even the raspberry pi's SDcard. I don't know what I'll have it do with those files yet but I just wanna know if its possible. If it isn't that's fine I have other solutions but I figured I would start with the obvious approach first. I'm didn't try it, but seems it's possible by the same way as in normal Android OS. To do this You should mount Your USB dongle into the filesystem somewhere e.g. in new folder /mnt/usb like in this answer of Onik or that project of Keval Patel :

How to boot Android Things 0.6.1 DevPreview in CM3L (Computer Module 3 Lite)

陌路散爱 提交于 2019-12-06 06:27:27
问题 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) but I only see the rainbow screen, never continue, I suppose the problem is relatad with DTB (Device Tree). I try some options 1. Add DTB file for CM3 "bcm2710-rpi-cm3.dtb" on boot partition, when I do that the rainbow screen appear an the disappear but not do anything more 2. Replace the