In your manifest file add permissions to camera and for uploading internet
permission as follows
uses-permission android:name=android.permission.INTERNET /
uses-permission android:name=android.permission.CAMERA /
On Thu, Jul 28, 2011 at 11:07 AM, perumal316 perumal...@gmail.com wrote:
Hi Siva,
But my application keeps on crashing when I insert this line:
URI mCapturedImageURI =
getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
values);
Must I add any permission in the manifest file?
Basically I just want to get the string containing the path to the
image saved e.g: /sdcard/DCIM/12345.jpg
Must I use contentprovider?
Thanks In Advance,
Perumal
On Jul 28, 12:23 pm, Sivasankar K sivasanka...@greatinnovus.com
wrote:
using the uri of content resolver you can get the path where it is
getting
stored
URI mCapturedImageURI =
getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
values);
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.ACTION_IMAGE_CAPTURE,
capturedImage);
intent.putExtra(MediaStore.EXTRA_OUTPUT, mCapturedImageURI);
On Thu, Jul 28, 2011 at 8:14 AM, perumal316 perumal...@gmail.com
wrote:
Hi All,
I am using the following intent to invoke the camera:
Intent cameraIntent = new
Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivity(cameraIntent);
The image is saved into the sdcard with the time/date as the name. I
want to do a HTTPPost of this image once the picture is taken.
How do I get the name of the picture stored? Or how to I change the
name of the image stored?
Thanks In Advance,
Perumal
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
K Siva Sankar
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
K Siva Sankar
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en