android-things

Screen mirroring android things (RPI) with TeamViewer Host

时光毁灭记忆、已成空白 提交于 2019-12-22 01:36:30
问题 I've succeeded to screen mirror the RPI running android things. What I did is: installed TeamViewer_Host.apk via adb Ran it on the RPI and login to my account(needed a display connected by HDMI) connected to it by my laptop TeamViewer application then got a very nice 1080p resolution mirrored screen But the problem appeared when I tried to do the same thing but without the HDMI display connected and then suddenly got a poor 32x32 tiny screen on the laptop! I tried it with Vysor app too but

Nearby Message API MessageLisenter is not triggerd

谁说胖子不能爱 提交于 2019-12-21 23:57:38
问题 I am working on IoT project with NXP i.MX7D . In this project I used Google Nearby API to publish data from companion app to the things app . I have followed this project nearby-kotlin . I have followed almost exactly as this repo . but in my case both of my app is publishing is subscribing successfully . Here are my code for two activity first one is companion app's MainActiviy.kt and second one is for the activity running on the NXP i.MX7D class MainActivity : AppCompatActivity(),

Reading temperature through DHT11 using Android Things

对着背影说爱祢 提交于 2019-12-21 02:27:30
问题 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 have used: public class WeatherStationActivity extends Activity { private Handler mHandler = new Handler(); private TextView mTxtStatus; private PeripheralManagerService service = new PeripheralManagerService(); private Gpio tempGpio; private int i = 0; int[] dht11_dat = {0, 0, 0, 0, 0}; @Override

Android Things intent for boot

巧了我就是萌 提交于 2019-12-20 20:02:45
问题 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? 回答1: If your Android Things device has multiple applications installed that all have this intent filter in the manifest: <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.HOME"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> ( < DP8 used to need

USB camera (not RPi camera) isn't working on Android Things Preview 2

百般思念 提交于 2019-12-20 06:15:58
问题 There are samples of using RPi camera, but none of them are useful. I have added permissions in the manifest file, but still the output is showing : No cameras found . Why? 02-22 19:24:42.936 2134-2134/com.example.androidthings.doorbell D/DoorbellActivity: Doorbell Activity created. 02-22 19:24:43.131 2134-2134/com.example.androidthings.doorbell I/CameraManagerGlobal: Connecting to camera service 02-22 19:24:43.135 2134-2134/com.example.androidthings.doorbell D/DoorbellCamera: No cameras

Build number/fingerprint for Android Things

谁说我不能喝 提交于 2019-12-20 03:13:19
问题 I'm using the Developer Preview of Android Things on my Raspberry Pi 3 and now, that the Preview 2 is released, I was asking myself if my RPi will get this via OTA. Where can I find the build number to check against my device generic/iot_rpi3/rpi3:7.0/NIF73/3565696:userdebug/test-keys On the developer page I didn't find anything and before I rebuild by sdcard, it would be easier to compare it. 回答1: so I'm not sure if this is preview 1 or 2 generic/iot_rpi3/rpi3:7.0/NIF73/3565696:userdebug

How do I connect my Raspberry Pi 3 running Android Things to a wifi network?

流过昼夜 提交于 2019-12-19 10:13:39
问题 I have flashed my Raspberry Pi 3 with the Android Things image, I have not been able to connect it to my wifi network. I have run adb devices but I get no response. 回答1: Take a look at this question: connect to Raspberry Pi 3 using adb The Raspberry Pi isn't a USB device, the USB connection is just for power, so it won't show up in adb devices . You have to connect it to a network first then use adb connect . 回答2: In short, you have to connect it to network using Ethernet and then follow the

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

限于喜欢 提交于 2019-12-18 12:24:10
问题 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 . 回答1: 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

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

杀马特。学长 韩版系。学妹 提交于 2019-12-17 19:22:46
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . 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

Screen orientation on Raspberry Pi 3 with Android things

风流意气都作罢 提交于 2019-12-17 18:56:09
问题 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 to do it from the console using the following adb commands but with no luck: adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0 Then adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1 Or