Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
- Uri uri = Uri.fromFile(File.createTempFile("image", ".jpg"));
- cameraIntent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, uri);
- startActivityForResult(Intent.createChooser(cameraIntent, "Take Picture"), 0);
- } catch(Exception e) {
- Log.e("", Log.getStackTraceString(e));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement