Android :: Camera In Froyo Emulator Crashes
Jun 28, 2010
We are exploring the default applications in Froyo and we found out that the Camera app always crashes seconds after it loads.
Is this related to the no camera/video input limitation of the application? If not, what seems to be the problem? We already added all the additional properties to the AVD. We also disabled the auto-rotate screen option.
View 2 Replies
Jun 1, 2010
The Emulator's camera worked fine for taking pictures in 2.1 Eclair. What did not work was recording videos, obviously.
Now running an app which worked merely flawless on 2.1 Emulator causes the camera app to crash. I fire up an intent to launch it:
CODE:...................
This starts the camera app but after a few seconds it crashes.
The output is:
CODE:.................
Actually I just wanted to see if the bug which made you receive a small image from the camera even though EXTRA_OUTPUT was specified has been fixed in FroYo. Unfortunately, I don't even get to test it.
View 2 Replies
View Related
Mar 29, 2010
I have a simple app that I am building to get the hang of android's development environment - and things like click events, etc..
The app loads, and I am able to change the text in a textfield using a button handler. However, when I import the location class, and try to do a simple GPS call, the application crashes.
The problem is, everything looks good in Eclipse (error console) - and I'm not seeing any exceptions in the android emulator (DevTools). I have the logcat window open, but I haven't done anything in eclipse/code to send logcat anything (do I need to?)
Is there a better way to troubleshoot?
CODE:........................
View 2 Replies
View Related
Oct 18, 2009
I am using the Android Emulator to debug my application, first off it is ridiculously slow, I mean like 15mins to load slow and on top of it, my Alarm Clock application fails?Am I the only one, or do other people experience this? Is there a fix or will I just have to go cook steaks while the emulator is booting?
View 3 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
Nov 24, 2010
So I started with this little write-up. I wanted to try to make an application that will take pictures while running in the background. To start though I wanted an application that once opened would simply take a picture every X seconds. After recreating the classes and methods show in the walk through below I ran into a few problems.
http://itp.nyu.edu/~sve204/mobilemedia_spring10/androidCamera101.pdf
For starters its seems that the onCreate function sets up all the objects for the application, but if you try to take a picture through any other method than onClick (IE directly calling it) the application actually hasn't setup the canvas or the preview yet.
My first question:
Is there any conditional method that you can setup that will wait till all the "onCreate" objects are created and their associated methods are called and finished? How do I wait for the application to finish putting together my surface and starting the cameras preview before automatically starting to take pictures?
My second question:
I am required to have a preview available to take pictures. Is there anyway to push this application to the back (IE running in the background) while still taking pictures? Is drawing to a canvas a requirement? (From what I can tell AFAIK, you are required to have a surfaceholder to start preview, when you put up another screen or application that pauses the current application and closes the surface/canvas you were presenting that preview on). If my understanding is correct on all of this the best I will be able to do is make a 1x1 pixel canvas that will still take up the screen due to the application being in the foreground.
My Third question:
Is there any way around this? Can you still utilize the camera in some fashion without requiring the preview be drawn?
View 1 Replies
View Related
May 21, 2010
My app is using the camera on the phone. For phones w/ 2.0+ I have been able to activate the Flash. When I test on a phone with 1.5 OS on it the app crashes. I get: java.lang.reflect.InvocationTargetException and the Cause is java.lang.VerifyError: fishers.Nav.TakePicture$1
I assume because you have to access the flash differently in apps below 2.0? Can anyone give me some advice or links to examples showing how I could make it work over the whole range of Operating System version or is that just not at all do-able?
View 5 Replies
View Related
Apr 15, 2010
When I put the setContentView in thread as below, it crashes while running in emulator. code...
View 2 Replies
View Related
Aug 23, 2010
I will try to be specific if I can - please be patient, first time asker and relatively new to programming on this platform. Apologies if this has been asked/answered before - please link it to me. I have searched up and down but find other unrelated (to me at least) problems.
The real puzzler for me is that my app is crashing on my emulator but when installed on my phone (via upload of apk to phone and then using an AppInstaller app from market) it works.
The crash comes from a NullPointerException at the numbered line in the following code snippet (my code) of a custom list cursor adapter.
CODE:....................
The following error dump is created.
CODE:..............
Curiously I have been happily programming and debugging away all day and out of the blue a long working and bug free portion of my app now throws up this error.
I suspect it might be a problem with the databases, but really not sure - nothing seems out of place there. Up until today I had a database with only one table - today I added a new table which also has a "_id" field as the name autoincrement key field, which I read in the docs was required for android list adapters (if memory serves). Having some experience in coding and some minor experience with databases, that seems like a bad idea to me but I am uncertain of if that is the problem and/or how else to do it.
The crash I am listing here does not display or make reference to the data in the other, new table. The cursor does not contain any query data from it. In fact if I rename the key field "_id" of the new table to something else (ie "_blah"), the crash remains.
Like I said, if I upload the apk to my phone, it works.
I have tried the following on the emulator:
- restarting adb (and eclipse) - no result
- uninstall from emulator - no result
- destory AVD profile and recreate - no result
I am developing this under the Android 2.1 SDK, and have been for the last few weeks. I have only ever had that SDK installed, I am yet to update to 2.2.
Not sure what else I can say here - hoping somebody here has experience enough to shed some light on it.
Without a fix to this, I can anticipate a very slow development process here on out (assuming I have to upload to my phone to test new code changes...).
View 3 Replies
View Related
Jun 7, 2010
Got the Evo (first android phone for me) and promptly started installing apps. At some point, my camera stopped working. When launching the camera app, the screen would go black for a second, then back to home screen. Installed the OTA update (also had the security error on SD card), then installed apps again. Same problem after so many apps installed. I don't know the app limit, but it's not out of internal storage. If I uninstall enough apps, camera works again. All other apps worked normally throughout.
View 11 Replies
View Related
Nov 24, 2010
I bought a x10 mini pro this week and the same day the phone arrived i updated to 2.1 with SE PC Companion software.
I didnīt noticed if this happens to 1.6 duo to the short usage of this droid version.
Every time i starts the camera application or any application that uses the camera (like Google goggles for example), the phone aparently crashes and suddenly reboot. After the reboot, the camera used to work for the first times but about aprox 30 min. or less that the phone has been rebooted, when i try to start the camera, the phone crashes and restarts again.
Iīve tried to Repair the phone in pc Companion software and the issue continues the same.
View 4 Replies
View Related
Mar 24, 2014
i've been having some trouble lately with taking pictures on my front facing camera. I'm using the t-mobile variant of the samsung galaxy s3 (its actually from wind, but theyre the same). The last rom i had installed was cyanogenmod, and it was working fairly well, except every once in a while, when i took a picture or video from the front facing camera, the phone would crash immediately and reboot. I tested this with many different camera applications and they all had the same result. I decided that i would try a different rom to see if that was the issue, so i installed the latest version of Carbon. The problem persisted, and it even got worse. Now every time i take a photo using the front facing camera, the phone will crash and reboot instantly. I read around, and there appears to be some issues with snapchat and such, but i dont think that is my problem as this is occuring with every camera application i have. I have also checked out some other threads related to this issue, and some seem to have the same problem, with no real solution. Apparently a temporary fix seems to be clearing the application data, but even that doesn't work for me. If i could guess, i would say it has something to do with custom roms in general as i have seen no reports of a stock rom phone having this issue, or perhaps a gapps issue, but those are just some thoughts.
Some Info:
Model Number: SGH-T999
Android Version: 4.4.2
Carbon Version: CARBON-KK-NIGHTLY-20140316-0304
View 1 Replies
View Related
Apr 28, 2010
I have yet to try this on an actual device, but expect similar results. Anyway, long story short, whenever I run my app on the emulator, it crashes due to an out of memory exception.
My code really is essentially the same as the camera preview API demo from google, which runs perfectly fine.
The only file in the app (that I created/use) is as below-
CODE:..................
View 2 Replies
View Related
Jan 28, 2010
The Android SDK has an API demo for using the preview of the camera. However, this gives me a runtime exception in the emulator. I'm running with Eclipse on a Mac with 10.6
Here's the link where I grabbed the code:
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html
View 5 Replies
View Related
Jul 16, 2010
I'm trying to understand remote services at the moment and everything works fine, i can start the service and know how to communicate with it through the AIDL-interface. My problem is that the service seems to still run in the same process like the activity it was started from, because the activity crashes too, if there is an error thrown in the Service.
I set the service process to remote ( android:process=":remote" ) so what am i doing wrong? Or what do i have to do to unbind the service-process completely from the activity-process?
View 1 Replies
View Related
May 21, 2010
I might have missed something, but how do we get flash working on the new 2.2 emulator? The sites I've tried don't work (eg BBC), and when trying to go to flash install site, i get rerouted to a market url for com.adobe.flashplayer (which obviously won't work on an emulator). So is flash being delivered as a market app? And if so how do we get it on an emulator.
View 7 Replies
View Related
May 21, 2010
I got new SDK today, and test my program on emulator. However, I can't open Mic on 2.2 emulator, it's work on earlier emulator, my code list below.new Audio Record(Audio Source.MIC, 16000, AudioFormat.CHANNEL_CONFIGURATION_MONO,Format.ENCODING_PCM_16BIT, iMinSize); And I got log below. ERROR/Audio Record(878): Could not get audio input for record source 1 ERROR/Audio Record-JNI(878): Error creating Audio Record instance: initialization check failed. ERROR/Audio Record-Java(878): [ android.media.AudioRecord ] Error code -20 when initializing native Audio Record object.
View 3 Replies
View Related
May 22, 2009
Strange behaviour with emulator running with Cupcake. When emulator is launched (via ADT), a SD card is mounted correctly, and I click on Camera, I have a black screen and nothing happens, I got the famous error with Wait or Force close wait, wait, wait nothing happens. I create with AVD the target 3. I'm on Windows XP SP2.
View 9 Replies
View Related
Jun 19, 2009
I've just noticed that launching the Camera and Camcorder (in the emulator) would result in a black screen (instead of the famous moving small boxes), i've looked for why this happening on the net, apparently that the camera is disabled by default when you create an AVD. Decided to create another AVD with the camera enabled and launched it and still getting that black screen. Anyone has any idea how to fix this ?
My problem in the first place is that my application is using the default camera application using intents just like in the following: Intent imageCaptureIntent = new Intent (MediaStore.ACTION_IMAGE_CAPTURE); imageCaptureIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File("/sdcard/imageCaptureIntent.jpg"))); startActivityForResult(imageCaptureIntent, WHATEVER_REQ_CODE); I thought that there's a problem in my intent request but like i said before, running the camera on the emulator itself is the problem. By the way, You can run the "camera preview" in the API demos with no problems, how come!
View 5 Replies
View Related
May 30, 2010
How can i use web cam with android emulator?
View 3 Replies
View Related
May 21, 2010
I wish to simulate camera in the android emulator using the webcam. Basically I need to only take photos with the camera in the emulator (live preview is not needed i.e if it makes it any easier) I followed the tutorial here which is the only one I could find that was close to my requirements But many of the libraries used in that tutorial(like android.hardware.CameraDevice) are not available in present sdk and are replaced by new libraries(like android.hardware.camera). Any help on how to do this in the present sdk(2.1 or 2.2) would be much appreciated.
View 1 Replies
View Related
Aug 18, 2010
I was trying to use some of the new camera methods included in Froyo, i.e. setPreviewCallbackWithBuffer() & addCallbackBuffer(). In the documentation it's said you need first to create a buffer of appropriated size and use the addCallbackBuffer() method. The buffer size must be width * height * bits_per_pixel or otherwise you'll never receive a preview frame. To know the image size, you can ask to the camera about it's configuration. When I'm trying to configured the camera I use Camera.getParameters().getPreviewSize() the emulator says the size is 320*240, but with that size it didn't work on emulator. I used the old setPreviewCallback() and, in the onPreviewFrame(), I asked the size again. That time the size was 480*320. Then I hard- coded that values in the first code and everything worked. Now I'm afraid not only the emulator would have that behavior. Unfortunately I don't have any real device with Froyo and I can't try it. So, anyone have tried that methods in real devices? btw, are they really increasing the poor performance and frame rate?
View 2 Replies
View Related
Oct 14, 2010
I have tested my application on the Android SDK on everything from 1.5 to 2.2 and the camera code in my activity works fine. Running it on a device with 2.1 is also working. But the same app does not work with 2.2 on HTC Desire and Nexus One and the app crashes. Any ideas why they might be happening?
Am using import android.hardware.Camera;.
Inside onCreate I have this:
CODE:.........................
View 1 Replies
View Related
Jan 23, 2009
There is Camera application in Android Emulator.
The application code is Camera.Java but I don't know where is it?
View 2 Replies
View Related
Feb 24, 2009
I have 1.0 r2 and it takes garbage pictures, and crashes when trying to view any saved image (I've only saved images taken from the emulator's "camera" so I don't know if it shows images that were pushed via adb properly.)
I'll try the 1.1 SDK, and failing that, an earlier version.
Is this a known issue, sort of a "well, if you're really going to work with pictures, you should be using a G1 anyhow..." kind of thing?
View 2 Replies
View Related
Aug 14, 2009
As far as i know, Android emulator doesn't have a camera. To capture a live image we have to use the web camera. I have seen code in this web site to use the web camera in the android emulator to capture an image, but I don't know how to use this code.
View 2 Replies
View Related
Aug 19, 2009
How to use my local computer camera in android emulator?
View 1 Replies
View Related
Oct 28, 2010
I am using Android 2.2 (API Level 8). The camera is enabled in the manifest. When I try the camera icon provided by the emulator model, it runs for a few seconds showing a gray box moving around a black and white checkerboard, then dies with the error message...
View 1 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
Sep 15, 2010
Camera application process dies and restarts again when device is Locked/End Call Key is clicked. Steps to reproduce: 1) Launch Camera application. 2) Click on End Call key(it acts as lock screen when there is no active call) or wait till device is locked. 3) Camera application is paused and surfaceDestroyed callback is not being called. 4) Camera process has died and restarted again. I would like to know why Camera process has died after onPause is being called and restarted again when device is put to Lock state. For all key events like BackKey,HomeKey and Accept Key it is working fine.
View 4 Replies
View Related