标签:extra apt path ide res files from dir class
public void photo(View view) { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); File file = new File(getFilesDir().getPath(), "1.png"); Uri uri = Uri.fromFile(file); intent.putExtra(MediaStore.EXTRA_OUTPUT, uri); startActivityForResult(intent, 1); } public void video(View view) { Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); File file = new File(getFilesDir().getPath(), "2.3gp"); Uri uri = Uri.fromFile(file); Intent intent1 = intent.putExtra(MediaStore.EXTRA_OUTPUT, uri); startActivityForResult(intent1, 3); }
标签:extra apt path ide res files from dir class
原文地址:https://www.cnblogs.com/nangongyibin/p/10252862.html