android-things

Android Things Raspberi Pi Not booting

百般思念 提交于 2019-12-24 12:46:15
问题 I'm new to Android Things, so would beg your pardon for any silly mistake. I'm using Raspberi Pi 3 Model B, and installed Android Things 0.5.1-devpreview on the sd card. But it's not booting. The board is fine as it's working fine with NOOBS and LIBREElec. When I start the board with Android Things it just shows the rainbow image of raspberi two times before shutting down. Please help. I've downloaded the zip from https://partner.android.com/things/console/#/622pn5/build and unzipped it

Android Things doesn't grant permissions on boot, what gives?

送分小仙女□ 提交于 2019-12-24 07:46:31
问题 Got this shiny manifest ready to be granted all ze permissions <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="exm.rand.lol"> <uses-permission android:name="com.google.android.things.permission.MODIFY_SCREEN_SETTINGS" /> <uses-permission android:name="com.google.android.things.permission.REBOOT"/> <application> <uses-library android:name="com.google.android.things" /> <activity android:name=".MainActivity"> <intent-filter>

Sound not working on raspberry pi with Android Things

时光总嘲笑我的痴心妄想 提交于 2019-12-24 07:41:37
问题 Recently we flashed Android Things on raspberry Pi 3 and everything is working fine except sound. I tried connecting 3.5mm jack earphone and hdmi screen as well in different combinations like: Only earphone without hdmi display. hdmi monitor only. earphone connected to raspberry pi 3.5 audio jack and hdmi display is also connected. I attempted all these using adb command. example: adb shell am start -a android.intent.action.VIEW -d file:///sdcard/music/sample.mp3 -t audio/mp3 Alternatively,

GSM/GPRS Module native integration on Raspberry 3 with Android Things

旧巷老猫 提交于 2019-12-23 18:17:53
问题 I would like to know if there is any way to make a GPRS / GSM module (SIM800L) as a "default" connection in android things that allows browsing the internet and making requests using the Android libraries. 回答1: Seems no, because as in this answer of Blundell described: the source code is not available for Developer Preview. But You can use UART and AT commands. 回答2: This is possible. I have been able to integrate SIM800L TO RPI3 running Android Things via UART and AT commands. I am however

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

杀马特。学长 韩版系。学妹 提交于 2019-12-23 13:56:07
问题 Android thing run time exception: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/things/pio/PeripheralManager; Manifest file: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.androidthings.simplepio"> <application android:allowBackup="true" android:icon="@android:drawable/sym_def_app_icon" android:name="android.support.multidex.MultiDexApplication" android:label="@string/app_name"> <uses-library android:name="com.google

Android Things: take a screenshot

和自甴很熟 提交于 2019-12-23 09:34:09
问题 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 回答1: I couldn't make screepcap work in Android Things Developer Preview . The command results in a 0-size file. That said, I recommend the following two options: either use the framebuffer or record a video ( screenrecord seems to work) and convert it

Android Things - can't use Awareness API

寵の児 提交于 2019-12-22 13:31:05
问题 I have the same code with a lower version (9.4.0) working on the phone but for some reason it won't work on RPi3? My build.gradle compile 'com.google.android.gms:play-services:10.0.0' provided 'com.google.android.things:androidthings:0.4-devpreview' The manifest permissions <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.INTERNET" /> The method private void getWeather() { // Check for permission first if

WiFi P2P network in Android Things

独自空忆成欢 提交于 2019-12-22 08:15:54
问题 I would like to create a P2P WiFi network using Android Things (5.1) and a couple of Raspberry Pi 3 or alternatively using Bluetooth. I followed the guide in the Android Developer section https://developer.android.com/guide/topics/connectivity/wifip2p.html, so my MainActivity looks like: private class MainActtivity { private WifiP2pManager mManager; .... @Override public void onCreate(Bundle savedInstances) { mManager = (WifiP2pManager) getSystemService(Context.WIFI_P2P_SERVICE); .... } }

WiFi P2P network in Android Things

耗尽温柔 提交于 2019-12-22 08:15:04
问题 I would like to create a P2P WiFi network using Android Things (5.1) and a couple of Raspberry Pi 3 or alternatively using Bluetooth. I followed the guide in the Android Developer section https://developer.android.com/guide/topics/connectivity/wifip2p.html, so my MainActivity looks like: private class MainActtivity { private WifiP2pManager mManager; .... @Override public void onCreate(Bundle savedInstances) { mManager = (WifiP2pManager) getSystemService(Context.WIFI_P2P_SERVICE); .... } }

Setting wifi ssid with a space in it

别等时光非礼了梦想. 提交于 2019-12-22 05:50:11
问题 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 com.google.wifisetup/.WifiSetupService \ -a WifiSetupService.Connect \ -e ssid "my ssid" \ -e passphrase secretpassword When looking at the logcat for the wifi connection I see: WifiNetworkHistory: saving network history: "my"NONE gw: null Network Selection-status: