android - Genymotion and PackageManager.FEATURE_CAMERA -
I have many questions relating to the use of camera in Genymotion android emulator. I finally got the camera jamming to solve the problem (though The problem has been resolved with this feature being small, and working from time to time).
Now I am trying to check the camera availability by using the following code:
PackageManager pm = PhotosSectionFragment.this.getActivity (). GetPackageManager (); But it always gives me the false , however the use of the following block to obtain the image take the intent image = New Intent (MediaStore.action_IMUNCUCCT); Le pictureentant Input extras (mediastore.xtra_uaptut, store lockation); StartActivityForResult (Le Pictureentant, requestId); I think it's a bug of population, because that investigation works well in AVD and on the actual device. But there may be another way to do the same test, which will work in genomes?
pm.hasSystemFeature (PackageManager.FEATURE_CAMERA) Always on Genymotion True should be returned. But occasionally, if the device is starting, the connection to the webcam fails will be disabled and the camera widget will not work until the next restart.
I think this is what happened here.
Comments
Post a Comment