0
我曾嘗試這樣的代碼:如何在Android版中開啓前置攝像頭爲默認相機6
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT,AppConstant.URI_IMAGE_CAPTURED);
intent.putExtra("android.intent.extras.CAMERA_FACING",android.hardware.Camera.CameraInfo.CAMERA_FACING_FRONT);
此代碼正在與下面的Android的6 其實我使用此代碼,打開前攝像頭,在棉花糖下工作正常。
該額外內容不在AFAIK文檔中。你怎麼使用它? – CommonsWare