我有一個場景,在該場景中,我通過以下代碼激發了打開攝像頭的意圖。只有在射擊意圖打開攝像頭後纔打開設備攝像頭
if(isCameraInUse())
return;
Intent i = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
mImageFile = getOutputFromCamera();
Uri tempuri = Uri.fromFile(mImageFile);
i.putExtra(MediaStore.EXTRA_OUTPUT, tempuri);
startActivityForResult(i, 0);
現在,如果我有多個相機應用程序,那麼我將它們全部視爲可以打開的選項。但我只想要打開設備相機。這可能嗎?是否可以觸發一個意圖指定哪個應用程序應該捕獲該意圖?