0
嗨我的下面的代碼記錄視頻。但它不保存在給定的路徑中。如何獲取存儲的視頻文件路徑。我使用data.getdata並且它不工作。android ACTION_VIDEO_CAPTURE不存儲視頻
String rootPath = Environment.getExternalStorageDirectory().getPath();
String filePath = rootPath + "/NewImage.3gp";
File file = new File(filePath);
Uri outputFileUri = Uri.fromFile(file);
Intent intent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);
intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, "1");
startActivityForResult(intent, Constants.CAMERA_REQUEST);
什麼設備以及是否有任何錯誤? – JoxTraex 2012-03-21 05:17:08
無錯誤。此代碼完全適用於動作圖像捕獲。該視頻在手機圖庫中可用。 – Manoharan 2012-03-21 05:24:01
更多解釋你**只是說**,這意味着我們需要看看你想要做什麼與意圖的數據。 – JoxTraex 2012-03-21 05:26:23