Android :: Using Camera To Take Pictures From My Application
Jan 7, 2010
I've been trying to write an application that uses the Camera App to take a picture. So far, the only thing I've been able to get back successfully is a tiny bitmap picture. I've found several other posts related to this topic that have code that is reported to work, but it does not work for me. I'm hoping someone can steer me in the right direction. Below is the code I am using currently, but it causes the application to blow up.
private void takePicture(final int x, final int y, String description) {
// create a file on the SD card
File file = new File(Environment.getExternalStorageDirectory(),
"tmp_" + String.valueOf(System.currentTimeMillis()) + ".jpg");
// Create the URI that tells the camera where to put the picture.
mOutputFileUri = Uri.fromFile(file);
statusLine.setText("URI => " + mOutputFileUri);
mIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE)
.putExtra(MediaStore.EXTRA_OUTPUT, mOutputFileUri)
.putExtra(PIC_X, x) // x coordinate of square
.putExtra(PIC_Y, y) // y coordinate of square
.putExtra(PIC_DESCRIP,description)
.putExtra("return-data", true) ;
startActivityForResult(mIntent, PIC_FROM_CAMERA);
}
Ultimately, I want to be able to get the picture back and do two things with it: create a 64x64 icon that is displayed by the Android application, and upload the picture to a web application. I'm running this on the emulator using Android 2.0
View 3 Replies
May 3, 2010
I am adding a bmp file to the media store using the line below. I then go to the gallery application and it shows the image, but shows it under "Camera Pictures". Is there a way to change this to its own group, perhaps to its own group? Do I need a custom content provider for this.
View 2 Replies
View Related
Dec 6, 2009
My camera stopped working. When I click my camera application I get the message "The application camera (process com.android.camera) has stopped unexpectedly. Please try again". It's just a blank screen?
View 3 Replies
View Related
Jan 4, 2010
Is there any App that will help take better pictures? I'm tempted to call Verizon up because I think my Camera isn't functioning at all.
I can take a picture of my daughter, in full light, and it comes out blurry as all hell.
View 19 Replies
View Related
Nov 9, 2009
Hi. im having a trouble getting Android's camera to work. i started CameraActivity Intent from MapActivity (when i start camera activity, i unresgister all listeners used in map activity), and when i call takepicture method, it just exits camera activity and return to map activity dumping strange msg showing below.
the camera sounds off the shutter-sound and it crashes camera activity. sometimes it succeeds, and sometimes doesn't.
it happens when im using docomo's HT-03A, 1.6sdk is installed.
Anyone having same trouble as i do?
CODE:....................
View 4 Replies
View Related
Dec 17, 2009
Just installed Camera Zoom FX, took a couple of pics. They immediately appear in a little square at the top left of my screen while still in camera mode after I click "save". However, no matter if I click on that little icon of the pic I took, or go to the Gallery on my Droid, either way it just comes up with the screen saying "No Media Found" help! Where are the pictures I am taking going?
View 1 Replies
View Related
Nov 27, 2009
I'm using the default camera API of Android 1.6 like this:
Intent photoIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); photoIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File (Environment.getExternalStorageDirectory(), "test.jpg"))); startActivityForResult(photoPickerIntent, 1);
But the image is saved on very low resolution 512 x 348. I added the QUALITY property but it doesn't make sence: photoPickerIntent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1); There are many more posts on the internet talking about this issue but there's no solution (jet). Is it solved on 2.0??? I realy need the high resolution image (3MP).
View 5 Replies
View Related
Nov 11, 2010
I am working on a program that opens up the camera on a button click, snaps a photo and takes that photo and stores it in a new class (listview.java) that will be accessed from the main menu. My code to snap a pic is: Code...
how do I go about saving that new bmp file to that different class?
I tried to put photoResultView in my listview.java class as so: Code...
but the program crashes everytime I try and save the pic I snapped - anyone have any ideas or tutorials for doing this?
View 2 Replies
View Related
May 24, 2010
I want to access camera pictures and camera pictures only. I could not find a specification of how the default camera application stores pictures...
1) Is /sdcard/DCIM a standard of any kind? On the Android devices I've used, it looks like the default camera app always writes to this location. Are there devices where pictures are written to a different location? 2) Is it specified that camera JPEGs will always be accessible on the file system? (And not in some private database for example?)
I'm hoping that if the above two are true, then I can simplify my code by simply reading the jpeg's in /sdcard/dcim. Or do I have to use MediaStore.Images.Media.query() for reliable access to camera images?
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
View 3 Replies
View Related
Aug 13, 2010
I was simply wondering if there was any way to make the default camera or even. Any camera app use the volume control buttons to take the photo? My phone HTC Evo with Fresh 3.0.
View 2 Replies
View Related
Dec 30, 2009
My camera won't take properly colored pictures any more. It started out as an intermittent problem but now it's just all the time and it really bugs me. The camera on these phones sucks to begin with but it did come in handy some times. This is the kind of pictures it takes now.
View 1 Replies
View Related
Jul 19, 2010
When you are taking a picture on an and device, you can send it. There are apps, which are pushing their actions into these send-list (Like Twidroid, which adds a listitem called "Send Tweet" in that menu).
So, how is it possible to add such a menu point into that menu? For my app, I want to make it possible to take pictures from both (The App itself and via the real camera-send-list) and save them on the sdcard.
View 1 Replies
View Related
Apr 15, 2014
I have a Panasonic FZ28 camera and a Pipo max 1 android tablet. I shall be taking both to a remote part of Canada in a few weeks. Any software program that will allow me to transfer photographs directly from my cam onto the Tablet, without taking my lap top with me?
View 1 Replies
View Related
Jun 25, 2010
Evo will not take a picture that is clear from less than 5 ft away. With BB Curve could take crystal clear pic of my computer screen from a foot or 2. Evo camera even after tapping focus is terrible. I could read the BB photo as to text on screen but EVO not even close. Can I not take macro type pictures with the EVO camera? Seems a limitation or is the camera gone bad?
View 11 Replies
View Related
Jun 25, 2010
http://www.aww-kittah-aww.com/up/files/3379/My%20Documents/evo%20pic.jpg
View 7 Replies
View Related
Jul 10, 2010
Is it just me it does your evo camera suck? Its almost impossible to get pictures in focus.I'll take the pictures and see them focus but it takes the pics when it's like not focused at all.one out of ten pics are in focus and its impossible to take a pic of anything moving. Is there any fix or app for this?
View 14 Replies
View Related
Apr 29, 2010
1) Is there a way to allow the camera to save pictures onto the SD card, as mine does not do so?
2) Within the Gmail app, is there a way to move messages from your inbox to other user-created folders? The Motorola Droid definitely had this option, but on the Incredible it looks like it only lets me apply a "Label", which I'm unfamiliar with, though this does not actually move the e-mail to that folder.
View 8 Replies
View Related
May 19, 2010
Seems that camera is saving pictures darker than originally taken. Anyone else notice this? To test i took a couple pics of my computer monitor, they are nice and bright just after camera takes the pic but when i go to albums to view them they are considerably darker. I even bumped the brightness all the way up to +3 that helped some but still dark.
View 4 Replies
View Related
Aug 15, 2010
What do you all think of the quality of the pictures on your DX's? No need to post pictures..... just want your opinions. Maybe rate 1 - 10 with 10 being best. I hated the pictures I took on my Droid 1. The quality was poor at best. Especially inside. I've taken a few with the DX using Vignette and they are pretty good.
View 47 Replies
View Related
Aug 9, 2010
I am sitting here looking at some pictures I took with my Droid then uploaded them to Facebook and Twitter and they don't look good at all. Its like the colors are all faded looking. I have shot some nice looking pictures with my phone before but for some reason here lately they look horrible! Anybody else notice this with their phone when your uploading to a website? I do have photoshop mobile so maybe I should try and edit them first before I upload a picture next time.
View 30 Replies
View Related
Aug 28, 2010
Samsung Epic 4G picture sampler
photo cred: tankful
View 12 Replies
View Related
Oct 25, 2010
What do you guys use for your camera application on the Evo? What would give me the best pictures/video?
I have camera zoom but I am not sure that, that is the best application. I would like picture quality over functionality.
View 3 Replies
View Related
May 7, 2010
Why can't Gallery see my camera pictures?
COnnects to Picasa and my SD Card fine but it cannot see my camera pictures.
View 1 Replies
View Related
Jul 22, 2013
I have this problem since i have bought my phone two years ago. I contacted the supplier about it but unfortunately the company shut down.
However, the problem is the back camera of my galaxy s1 can't take pictures and it appears to me like this in the gallery even in my computer i can't view the pictures that i have taken. The back camera can take videos but not pictures image hosting photobucket
View 5 Replies
View Related
Jul 6, 2012
Many people think that the pictures taken from the phone camera are stored in internal storage and think they are losing internal memory because of taking picture bit the pictures you take is stored on sd card
Images are stored insdcardDCIMcamera
so dont worry take pictures
instal link 2 sd and wipe all cache and dalvik-cache to free up 5-15mb
View 1 Replies
View Related
Aug 14, 2013
Just bought a Galaxy S3 from Cricket Wireless and everything works perfectly fine but when I go to use the camera the pictures are blurry and when I take a picture of a object that close like 3-4 inch away the picture is clear but if I want to take a picture of something else like a potrait or somthing mid range to far the picture is blurry like it doesn't want to focus. I tap the screen to try and focuses it and nothing happens.
View 2 Replies
View Related
Nov 13, 2009
I spent some time today doing controlled tests with the camera on the Droid and these tests confirmed my thoughts about the Droid camera: It will take decent pictures, but not in autofocus mode. I've posted a link to the pictures in Picasa **here**.The EXIF data shows the following: f.2.8 is the only aperture used. High shutter speeds in hazy sunlight will enable you to steady the camera. Most of the shutter speeds topped out ~ 1/1400 of a second. The other variable is ISO and in bright sunlight it's set very low, usually around ISO 50. This is a good thing since it allows you to have a high shutter speed since these tiny cameras are inherently hard to steady. I cannot account for the fixed aperture of f.2.8. In a larger camera such a wide setting would normally assure a rather soft picture. Here it seems to work.
The sample pictures I posted were duplicated many times in my tests and the results were consistent. As you look at the samples you will first see a wide picture.I then opened the picture in Photoshop and took it to 100% (all pixels displayed) then I cropped an area of interest. The results show the fixed focus working fine (with not as much shutter lag since it's not hunting for focus) and the autofocus mode completely broken. I think this shows a definite software issue. The hardware seems fine, although the shadow areas are quite noisy, the result of a tiny sensor and its overflowing photosites.So go ahead and take pictures outdoors and you'll probably get decent pictures set at infinity, even when you are taking pictures of friends in groups. I'll make a guess that this software bug is a result of a code screwup at the very last minute. If we can be patient I suspect the fix will be a simple one.
View 18 Replies
View Related
May 25, 2010
Anyone else have this problem? I take a photo and its not there and takes opening and closing the gallery a few times. Sometimes I have to take another photo and then they both show up. Is this a bug with 2.1 or is there a fix for this?
View 28 Replies
View Related
Jun 27, 2010
Is there a way to be able to specify where my camera saves pictures? I made a new folder called photos but when I take new ones it saves them to camera 100
View 3 Replies
View Related
Dec 19, 2009
Any idea why the quality of pictures is so much better when using GOOGLE? If pictures can be that good why does the camera suck when taking pictures?
View 4 Replies
View Related