How To Handle Camera Intent Android
I was working on some camera stuff in android and i get some tutorials. For my needs i get the following code to be used: Intent cameraIntent = new Intent(android.provider.Medi
Solution 1:
use this . It will save the image to any myfolder in your SDCard.
String imageFilePath = Environment.getExternalStorageDirectory().getAbsolutePath()
+ "/myfolder/myfavoritepicture.jpg";
File imageFile = new File(imageFilePath);
Uri imageFileUri = Uri.fromFile(imageFile);
Intent i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
i.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, imageFileUri);
startActivityForResult(i, CAMERA_RESULT);
Post a Comment for "How To Handle Camera Intent Android"