android-things

Does Android Things support the Raspberry Pi 3 model B+?

与世无争的帅哥 提交于 2019-11-30 06:48:01
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 further happens. Power is fine and same micro SD card works with Raspbian . Raspberry Pi 3 model B+ is not yet officially supported by Android Things in contrast to Raspberry Pi 3 model B . 来源: https://stackoverflow.com/questions/49434627/does-android-things-support-the-raspberry-pi-3-model-b

connect to Raspberry Pi 3 using adb

对着背影说爱祢 提交于 2019-11-29 14:35:17
问题 How do I connect w/ adb to the Raspberry Pi 3 running Android Things? 回答1: Android Things for Raspberry Pi only support connecting to adb using adb-over-ip with the following command: adb connect `<raspberry-pi-ip-address>` You have multiple options to find your IP address depending on your Pi setup: If your Pi is connected to Ethernet and a screen: it should show you its IP address on the Android Things launcher screen. If you have a headless Pi connected to Ethernet: you can directly ping

Android Things: Raspberry Pi screen timeout

百般思念 提交于 2019-11-29 11:54:49
I'm building app on Raspberry Pi with Android Things and I have 7 inch touch screen , but the screen never turns off. Is it possible to set timeout like in Android phones? or force it to turn off/on. If I remove the power line and inserted again the screen, it will not work until I reboot. There are two system settings that control this process: STAY_ON_WHILE_PLUGGED_IN and SCREEN_OFF_TIMEOUT The STAY_ON_WHILE_PLUGGED_IN setting is set to BATTERY_PLUGGED_AC by default. You can programmatically change this value in your application code with the Settings API: Settings.Global.putInt

Android Things - How do I connect to my Raspberry Pi when I don't know the IP address

与世无争的帅哥 提交于 2019-11-29 11:31:59
问题 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 Raspberry Pi through Ethernet, because it displayed the IP address on the TV when I booted up the Raspberry Pi. Now because I have the Raspberry Pi already running an application, when I boot it up, it is automatically booting into my application without showing the initial screen with the IP

PeripheralManagerService throws NoClassDefFoundError

心不动则不痛 提交于 2019-11-28 13:42:51
I have the following code in my app to access PeripheralManagerService : PeripheralManagerService service = new PeripheralManagerService(); Gpio ledGpio; try { ledGpio = service.openGpio("BCM6"); ledGpio.setDirection(Gpio.DIRECTION_OUT_INITIALLY_LOW); } catch (IOException e) { Log.e(TAG, "Error configuring GPIO pins", e); } After updating to the latest Android Things (Developer Preview 7), my app is now throwing a NoClassDefFoundError : java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/things/pio/PeripheralManagerService; ... Caused by: java.lang.ClassNotFoundException:

What is Android Things Raspberry Pi GPIO max frequency?

狂风中的少年 提交于 2019-11-28 12:57:05
Where can be found the characteristics of the switching speed of GPIO port for the Raspberry Pi 3 under Android Things like that ? In DP2 there is two ways to control GPIO: 1) with SDK using java (analyzed by Harry Fairhead here ); 2) with NDK using C/C++ (analyzed by Harry Fairhead here ). With SDK using java the fastest pulses seen are around 0.23ms and there are lots of large (up to 8ms) interruptions (!!!) in the pulse train. And with NDK using C/C++ the pulse width is reduced from 0.23ms to just around 0.15ms. Conclusion: Android Things DP2 Raspberry Pi GPIO max frequency is about 3 kHz,

How to mount a USB drive on Android Things?

末鹿安然 提交于 2019-11-28 12:53:34
I'm attempting to read files off of a USB drive for an Android Things app on a Raspberry Pi . I'm able to scan the list of mounted devices like so: public static List<File> ScanForFiles(Context context){ ArrayList<File> files = new ArrayList<>(); try{ BufferedReader reader = new BufferedReader(new FileReader("/proc/self/mountinfo")); String line; while ((line = reader.readLine()) != null) { String[] columns = line.split(" "); Log.i(TAG, "Mounted: " + columns[4]); //files.addAll(getListFiles(new File(columns[4]))); } } catch (Exception ex){ ex.printStackTrace(); } printFileInformation("/proc

How to show soft keyboard on Android Things?

落花浮王杯 提交于 2019-11-28 10:18:51
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"> and <EditText ... android:inputType="numberDecimal"/> Does Android Things 7.0 support soft keyboard, or am I missing something? Update II : there is a bug with Dev Preview 5.1 when Google's soft keyboard doesn't show up at all . Update : starting with Dev Preview 4 the Android Things image is shipped with com.google.android.inputmethod.latin preinstalled. If you're going to use a 3d party keyboard app the

How to set wifi to Android Things without an ethernet cable or adb [closed]

放肆的年华 提交于 2019-11-28 10:09:48
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 in the SD card right after copying the OS image. If that can't be done directly, worst case scenario I would expect it should be possible to write a script and copy it somewhere into some of the partitions and have it automatically run at boot (which can be handy for other things). Unless the image is signed? I would also be ok by writing an app that could be copied to SD card before first boot

How to create Android Things' bundle and push it over OTA?

半腔热情 提交于 2019-11-28 09:55:20
问题 Anyone succeeded creating Android Things Bundle and pushing it over OTA? On the Android Things' Console, there's a page to Create a Bundle for the OTA. I'm trying to figure out how to do that. I've adding just a single APK file main.apk to a ZIP file. Then I've tried to push it to a RPi which is sitting nearby. But the main.apk would not be launched on the device. Things I've tried/done: Download Empty bundle with Things Build ID = NIH40K Creating a Bundle and pushing it to devices through