libusb for Android================== Building:--------- To build libusb for Android do the following: 1. Download the latest NDK from: http://developer.android.com/tools/sdk/ndk/index.html 2. Extract the NDK. 3. Open a shell and make sure there ex
现在 android 平台的智能手机一般都标配有两颗摄像头.在 Camera 中都存在摄像头切换的功能. 并且有一些功能前后置摄像头上会有所不同.譬如人脸检测,人脸识别,自动对焦,闪光灯等功能, 如果前置摄像头的像素太低,不支持该功能的话,就需要在前置摄像头上关掉该 feature. 那么是如何判断并切换前后置摄像头的呢? 我们先来看下 CameraInfo 这个类, /** * Information about a camera */ public static class CameraIn