android-things

Android Things Pin naming convention

前提是你 提交于 2021-02-10 05:27:48
问题 Why different boards have different GPIO names in Android Things? For example, in Raspberry PI 3, there are BCM6 , while Intel Edison with the Arduino breakout has IO12 , IO13 , etc. 回答1: GPIO (and other peripheral port handle) are named after the SOC/SOM documentation for each supported board. Boards like the Edison Arduino breakout or the Sparkfun Edison Pi block have the same pin name directly on their silk screen. When this information is missing, you can consult the pinout reference in

BMP280 ServiceSpecificException: I/O error (code 5)

*爱你&永不变心* 提交于 2021-01-27 14:56:28
问题 I try to use AndroidThings to measure temperature with Raspberry Pi 3 and BMP280. 3,3V i have choosed because of specification of BMP280: To power the board, give it the same power as the logic level of your microcontroller Then i want to initialize sensor mTemperatureSensorDriver = new Bmx280SensorDriver("I2C1"); And by execution i receive following exeption Error configuring sensor com.google.android.things.pio.PioException: android.os.ServiceSpecificException: I/O error (code 5) at com

INSTALL_FAILED_MISSING_SHARED_LIBRARY Error When Trying To Run Android App

大城市里の小女人 提交于 2020-06-01 05:22:07
问题 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 messages; Failed to commit install session 389180709 with command cmd package install-commit 389180709. Error: INSTALL_FAILED_MISSING_SHARED_LIBRARY: Package couldn't be installed in /data/app/com.example.myapplication-segdjrVZj4KvtCNaJ5W5oQ==:

Using Raspberry Pi Display on CM3 with Android Things

吃可爱长大的小学妹 提交于 2020-01-25 02:59:05
问题 I'm developing an app on Raspberry Pi 3 using Android Things as OS. I started using the normal Raspberry Pi 3 with the official touch screen. Everything worked fine, so I tried the same setup on the development board with the rpi compute module 3 lite (CM3L). Unfortunately the display doesn't turn on. After some research I found this: https://www.raspberrypi.org/documentation/hardware/computemodule/cmio-display.md Seems like I have to adjust the options for SDA and SLC on the OS as well as

remote service call PeripheralManager.getInstance

落花浮王杯 提交于 2020-01-15 03:12:26
问题 run time exception: System.err:java.lang.RuntimeException: Stub! at com.google.android.things.pio.PeripheralManager.getInstance(PeripheralManager.java:21) at com.afollestad.remotedemo.RemoteService$1.testPeripheralManager(RemoteService.java:33) at com.afollestad.remotedemo.IRemoteAIDL$Stub.onTransact(IRemoteAIDL.java:56) at android.os.Binder.execTransact(Binder.java:697) Remote service's Manifest file: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com

android things:Use Speech to text in Raspberry Pi 3 using android things

会有一股神秘感。 提交于 2020-01-14 10:29:42
问题 im using below code for speech to text for Raspberry Pi3 Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "en-US"); try { startActivityForResult(intent, RESULT_SPEECH); } catch (ActivityNotFoundException a) { a.printStackTrace(); } But code not works it gives exception as device does not support Speech to text Is there any way

Android Things 0.5.0-devpreview HDMI output isn't available on Raspberry Pi 3

隐身守侯 提交于 2020-01-14 05:24:31
问题 I am using a Samsung monitor and it displays this message "Mode Not Supported. Resolution not supported. Change the resolution of the external device." I had tried to use different monitor but still can not get the right format output signal. Display via HDMI is good on 0.4.1-devpreview 回答1: Try to check Balaji BABU T.R.'s solution from comments to Wayne Piekarski announce on Google's IoT Developers Community: Open config.txt in Notepad ++ paste below things # uncomment this if your display

Android Things filesystem

北城以北 提交于 2020-01-13 20:43:09
问题 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. 回答1: 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

How to show soft keyboard on Android Things?

强颜欢笑 提交于 2020-01-09 10:07:19
问题 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? 回答1: 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

How to show soft keyboard on Android Things?

六眼飞鱼酱① 提交于 2020-01-09 10:07:09
问题 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? 回答1: 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