Android :: Taking A Picture With Camera - Without SurfaceView
Oct 28, 2010
Hi Guys! I'm coding a little app, but I don't know what I'm doing wrong. The App does the following: - Launches a Service which listens for an sms, then captures a picture with the cam and sends it to a predefined email adress. (no, i'm not trying to spy somebody out... I'm using the app to get a "3G-Webcam", sort of at least)
The problem: My App works great in the emulator, but as soon as I try it on my HTC Magic (cm6, android 2.2) it stops working.
CODE:.............
The permissions are all set, even the write to SD-card. What am I missing?
Note: I'm not using a surfaceview. Code:
CODE:......................
View 2 Replies
Sep 19, 2009
I tried an old(er) example / tutorial to capture a picture from the camera. But "android.hardware.CameraDevice;" cannot be resolved. Has the name changed or have somebody a good tutorial for android 1.6 and the camera? If I press a button, I want to open the Camera and make a picture. After that i want to save the picture on a sdcard and go back to my activity.
View 3 Replies
View Related
Mar 3, 2009
I am trying to take picture by G1 camera.
I have tried almost everything i was able to find on the net about this topic. It seams there should be intent with action "android.media.action.IMAGE_CAPTURE" which really starts camera application and returns captured image. But captured image is scaled to 0.25 of original size. Another possibility I have found is to pass uri where to save captured image. I went through all available sources of camera application and it should work but does not.
For illustration, I am doing following in my example activity which creates new image, but after returning from camera, image is still empty:
CODE:..................
I am ready to write my own capturing application, but it is quite hard and I would like to reuse.
Do you know correct intent action name and extra name to pass to capture image?
View 4 Replies
View Related
May 3, 2010
I was experiencing the "freezes" that others have complained about. The phone itself would freeze up after taking a picture or I'd get a black screen right after activating the camera. After some experimenting, I found something interesting that might help others with this problem. I don't understand why this would work, but it does, at least for me.
If I activate the camera while the phone is vertical and wait until the picture comes on the screen and then turn it horizontal, I have no problems, it takes pictures from then on either vertically of horizontally. But if I am holding the phone horizontally. and then activate the camera, I get the black screen or if I do get a picture, the camera freezes after taking the shot. Maybe the part of the OS that detects orientation is having compatibility problems with the camera software?
View 4 Replies
View Related
Nov 22, 2009
Anyone know how to turn off the sound of when a picture is taken, the snap sound?
View 5 Replies
View Related
Nov 9, 2009
Is there a way to turn off the flash and/or the shutter sound of the camera when taking a picture?
Flash Mode says auto under it, but the box is grayed out and I cannot select it to change it.
This is the same for the auto focus feature, I am unable to select that as well.
View 4 Replies
View Related
Aug 25, 2010
I have my code all set and done.. no errors at all..everything looks fine.. how/where/why doesnt takes a picture? this is a internet tutorial custumized for needs..
CODE:................
View 10 Replies
View Related
Jun 26, 2009
I am trying to set a camera preview in a custom SurfaceView but I get an exception each time I execute the initialization method.
View 4 Replies
View Related
Apr 5, 2009
I have an Activity for my application to take pictures and store them with a content provider. The problem is that obviously I would like the picture to auto rotate depending if I have my phone in landscape or not and I would like to use the autofocus feature. So I'm wondering if I could just call a Camera app intent and get the URI of the picture taken. is that possible? I remind reading that it will only give me a small size picture.
View 3 Replies
View Related
Aug 27, 2009
I just got my camera preview working for my app, but it is not appearing where I want it to appear, and I'm not sure how to get it there. Instead of using the entire screen for the preview, I would like to put it inside a surfaceview in an activity xml gui. What do I need to change? Here is my code:
public class TakePic extends Activity {
SurfaceView camSurface;
Preview camPreview;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);//hide window title
camPreview = new Preview(this); //create preview
setContentView(R.layout.takepic);
setContentView(camPreview); //set preview as activity content
camSurface = (SurfaceView) findViewById(R.id.camsurface); }
View 5 Replies
View Related
Mar 25, 2009
I want to receive the data from the preview of the Camera, but without having to set a SurfaceView with a SurfaceHolder in the view of my application. I want to do something like this: Camera cam = Camera.open(); cam.setPreviewCallback(new MyPreviewCallback()); cam.startPreview(); This will not work because I need to call setPreviewDisplay (SurfaceHoler) before I start the preview. I can get a SurfaceHolder from a SurfaceView, but I don't want a SurfaceView, because I don't need one. I just want to handle the preview data by myself.
View 2 Replies
View Related
Apr 19, 2010
My application should hold a camera preview surface. The camera is fixed to landscape view via AndroidMainfest.xml I am quite new to the Android plattform programming. Of course I don't know much about the programming tricks and workarounds yet. I did a lot of research over the last two weeks (even studied the native Camera implementation), but couldn't find a good solution so far.
View 2 Replies
View Related
Apr 10, 2009
why a picture taking application works on some phones and not on others? The app was tested with the 1.1 emulator and the 1.0 developer phone. Some customers reported that they could not find the resulting pictures using the Picture application after they powered off the phone and powered it back on to cause a new media scan. Others find them just fine (in the dcim/camera directory). Are there any known conflicts for applications taking pictures? The only other thing I can think of is that the developer phone, currently at 1.0, will function differently at 1.1, however, the app works on the 1.1 version of the emulator.
View 3 Replies
View Related
Jan 20, 2009
Is it possible to take photo with emulator's camera?, if the pc(on emulator is there) having web cam
View 5 Replies
View Related
Oct 5, 2010
At an event the other night that took place in a low-light restaurant, the EVO had trouble focusing and taking good pictures. It would also use way, way too much flash when put in automatic mode, and even seemed a bit much when turned down in the options.
View 21 Replies
View Related
Sep 29, 2010
I'm using the android SDK in Eclipse on Linux. I've used the code at itp.nyu.edu/~sve204/mobilemedia_spring10/androidCamera101.pdf to write an app to store an image captured through the camera onto SD card (there are various examples of this around). It works ok except that the image returned by the camera is not what's on the preview surface. Instead of getting the checkerboard image I expect, I get different versions of the android icon depending on which version of target I choose. If I render the image to an ImageView this is confirmed as it's the same as on the SD card.
View 1 Replies
View Related
Apr 30, 2010
Haven't downloaded a different camera app or anything, but when taking about every third or fourth photo my screen freezes up. And I mean over 20 seconds of wait time. The photo is there, but the phone isn't doing anything. I pressed menu, back, etc, and no response. Finally after pressing the top unlock button the phone wakes back up and loses the picture. My SD card is a class 6 - so shouldn't be having problems writing to it, correct?
View 2 Replies
View Related
Jun 7, 2010
I'm not sure what I did but when I go to take a picture now, the only thing I see is a pink screen when I activate the camera applications.
View 1 Replies
View Related
Apr 7, 2010
I just got my Hero a few days ago, previously I had an Instinct. So far I love the Hero, but one of my few complaints about it is having to take pictures by pressing the trackball. The trackball just feels odd to press and most of the time I have to press it multiple times for it to take a photo. Anyone have any solutions to this? I doubt there is a way to change this in the settings, but is there an app or something that uses a more convenient button for photos?
View 11 Replies
View Related
May 1, 2010
Why is it When I take a picture with the phone camera it wont put the picture up as wall paper in its original size format. It blows it up really big or wants me to re size it what am I doing wrong. All I want is the picture to look like I took it on the home screen.
View 10 Replies
View Related
Jun 17, 2010
how come when I tap the screen to take a picture it is very inconsistent as far as when it will take and when it doesn't. Any advice?
View 2 Replies
View Related
Sep 7, 2010
I was taking a picture with my phone a little bit ago, and my phone locked up. None of the buttons would work and I couldn't hold power button down or nothing. So I pulled my battery out, let it sit for about 5min and put it back in. Now it's been about 10min and still on the "AT&T World Phone" screen. I'm going to just leave it on that screen and hope the battery dies all the way soon, then hook it up to the wall and see if it will turn on. I know the iphone has a way where you can reset a phone if it locks up, and of course i have my numbers backed up to my google account so I'm not worried about that. Don't really care about the videos/pictures I have on ther ebecause I typicall upload to youtube/flickr right after I take them.
View 3 Replies
View Related
Oct 9, 2010
Does anyone know how to take a photo only focus on the object we want and the background is blurry?
does x10 have it?
View 7 Replies
View Related
Nov 15, 2010
Does anyone know if the Flash can be turned off for taking a picture when it is dark, flashes only work for a few meters and I find everytime I take a picture at night the picture come out bad
View 2 Replies
View Related
Aug 20, 2010
One using a Surfaceview, and the other using a custom view. According to the android SDK development guide, using a surface view is better because you can spawn a separate thread to handle graphics. Th SDK development guide claims that using a custom view with invalidate calls is only good for slower animations, less intense graphics.However, in my simple app, I can clearly see that using a custom view with calls to invalidate seems to render faster.What do you guys know/think about this?My touchEvent code is exactly the same, and my drawing code is exactly the same. The only difference is that one is all in the UI thread, and the other is using a tread to handle the drawing.
View 1 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
Oct 28, 2010
How to maximize picture when taking a photo(shot)
View 1 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
May 8, 2010
1)Can you zoom in while taking a pic with the optical pad?
2)can you take pics in portrait view?
3)best flashlight app?
4)is there a way to change the settings of like the touch screen and the optical pad?
View 3 Replies
View Related