Friday, September 13, 2019

usb host mode - Taking pictures using an external (USB) camera on a Samsung Galaxy S2


Question: How can we take a picture using an external, USB camera, on a Samsung Galaxy S2 (setup in host mode, using an OTG (On The Go) cable), running Android 4.0.3 (Ice Cream Sandwich).


Details: We are trying to build an app as part of a project, where the phone will be out of sight (e.g. in someone's pocket), but the external camera can take a picture (on demand) that our app can process. We have seen evidence of success using OTG and flash drives/mice/keyboards, but are unsure of what difficulties may arise (and how to approach them) for a USB webcam.


Given that we are trying to write an app (API level 15), other pointers (with regard to interfacing with the external camera) would be appreciated (as a starting point, we really would like to just prove that the camera CAN work - that is, using any existing app, take a picture using the external camera).


Beyond basic recognition and potential problems, we are concerned (perhaps needlessly) about the power that the phone can provide to the USB camera - is it likely that this will be sufficient to power the camera?



If it is not possible to use a USB webcam as an external camera on an Android phone, other suggestions as to how we can setup an external camera to work with the phone, would be appreciated.


Specifications: Android version: 4.0.3 - Ice Cream Sandwich API level 15 Device: Samsung Galaxy 2 Model GT-I9100M Build Number: IML74K.UGLD3




No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...