Can we use USB camera with android things in RPi? - camera

Is there support for using external USB camera in Android things(DP6)? 'Camera2Basic sample' works in the new release. What does that mean?

Related

open developer menu after install debug apk react-native

Currently, I'm working on a big tablet android like the advertisement board.
I'm trying to use react-native for it and the only port that they have is USB. I'm trying to open the developer menu but have no idea how. I am installing the apps by sending the debug apk using the drive.
Things that I try:-
shake the big tab, might be they do not have the sensor for it
use USB male to male did not detect the USB as adb or anything.
any idea how to open this one? it's pretty hard to not see the console.
Tab Information:
Model number
Quad-Core R18 ads
Android version
android 6.0.1
firmware version
ads_v1.0
kernel version
3.10.65
xiao#yh-Series2 #225

'react-native run-android' with USB tethering not installing app on device (note 4)

I am trying to test my app through USB tethering (this app is currently working on Xcode and iOS Emulator). I have enabled tethering on 'Developer Options on my phone'
About Device
Samsung Note 4
Android 6.0.1
This is what i tried.
I ran this command
adb devices
react-native run-android
But the app is not installing on my Phone. Am i missing a step?
I've never done this with USB tethering. It seems like you need to do a bit more wiring to set up the app on your device outside of sharing internet connection. If you are open to an easy alternative you can try using Expo with create-react-native-app. If you have a simple app, you can run your code on your actual device by scanning a QR code.
The quickest way I've found to do test this out is with repl.it.

Make Android Emulator use physical usb camera

Android Studio, latest Google SDK emulator. I have set back camera emulation mode to Webcam0 to get my usb camera connected to emulator. Unfortunately, it's not working. My camera works without any problems on host computer, for example this:
ffplay /dev/video0
gives me camera video playback. When I run emulator with above settings, camera on emulator just says "Unable connect to camera", then closes itself. Have anybody ever succeded with connecting physical camera to Android emulator? I have found some similar problems out there, but none of them has been resolved.
you can try to edit the config.ini of the AVD in ~/.android/avd/avd_name/config.ini like in this link http://viralpatel.net/blogs/enable-camera-in-android-emulator/ or use Android Studio directly like in this Android: How to use webcam in emulator?
if this isn't working see Lekensteyn's answer (2nd) in Connect USB device to Android Emulator?. it describes how a USB device can be passed through to a QEMU emulator. Android emulator is modified QEMU for more details see https://developer.android.com/studio/run/emulator-commandline.html
to find out if your webcam is recognized anyway try emulator #avd_name -webcam-list to get the available AVD use android list avd
more on passing through a USB device to QEMU emulator is also in https://unix.stackexchange.com/questions/250938/qemu-usb-passthrough-windows-guest

Does react native support development for below android 5.0 apps

I was developing app for 4.2.2 but unable to run adb reverse command as the react documentation says it wont suport below 5.0. Hence I am unable to produce apk
Using adb reverse
Note that this option is available on devices running android 5.0+ (API 21).
Have your device connected via USB with debugging enabled (see paragraph above on how to enable USB debugging on your device).
Link: http://facebook.github.io/react-native/releases/0.18/docs/running-on-device-android.html#content

Reg:how to access the apis's of USB libaries in android

I am using android 2.2 version. I want to use the USB related API's in android application. but in android 2.2 version is not having the API's in the applicaition framework layer.It is available in 3.1 and newer version of android.
but in android source code i have seen libraries for USB (API 's in the format of .c and .h file).whether i can able to access the api in the application layer of the android. I want to use the USB device for example, Test CDC class.
For example : if i want to initalize the USB then i can able to call the USB_init() function which is in the USB.c.. Is this possible???? any one please help me.......
Regards
Ram