Android Front Facing Camera Android 4.0.3 ICS Start Failed


HOME ยป Android

I'm trying to create a Android app that records a video from the front facing camera. The preview works fine, but as soon as i start recording the app crashes with the error "java.lang.RuntimeException: start failed." I've tried the same with the rear facing camera, but it has the same problem. Im working on a Samsung Tab 2 P5110 which is running Android ICS 4.0.3.


This is my Actvity class that shows the preview and should start the recording.


import java.io.IOException;
import java.lang.reflect.Method;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Field;
imp

Related to : Android Front Facing Camera Android 4.0.3 ICS Start Failed
Android cant record video with Front Facing Camera, MediaRecorder start failed: -19
Android

Okay so I have spent all day trying to fix this problem, I have read every article on StackOverflow relating to the error code and other similar issues but nothing seems to make any difference.


I have two different code bases with the same problem.


The first one is code copied straight from developer.android.com here:
http://developer.android.com/guide/topics/media/camera.html#custom-camera


The second one is this code:


http://android-er.blogspot.com.au/2011/10/simple-exercise-of-video-capture-using.html


Both work fine with the normal rear camera, but as soon as I try to use the front

Android emulator doesn't show Front Facing Camera. Camera.getNumberOfCameras() always return 1 which is always Camera.CameraInfo.CAMERA_FACING_BAC
Android

Following is my emulator AVD details


Name:ics4.0.3
CPU/ABI: ARM(armeabi-v7a)
Path: c:usersmyname.androidavdics4.0.3.avd
Target: Android 4.0.3 (API level 15)
Skin: WVGA800
SD Card:100M
hw.sdCard: yes
hw.lcd.density: 240
**hw.camera.back: emulated**
**hw.camera.front: emulated**
hw.cpu.model: cortex-a8
vm.heapSize: 48
hw.ramSize:512`

Before Staring the AVD, I have selected Configure Camera Facing Front and Configure Camera Facing Back to emulator.


In-spite, when my program runs, Camera.getNumberOfCameras(

Android Front Facing Camera Android 4.0.3 ICS Start Failed
Android

I'm trying to create a Android app that records a video from the front facing camera. The preview works fine, but as soon as i start recording the app crashes with the error "java.lang.RuntimeException: start failed." I've tried the same with the rear facing camera, but it has the same problem. Im working on a Samsung Tab 2 P5110 which is running Android ICS 4.0.3.


This is my Actvity class that shows the preview and should start the recording.


import java.io.IOException;
import java.lang.reflect.Method;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Field;
imp
Android Front Facing Camera - empty (0km) file or start failed on some devices
Android

I had this problem with my app (ScareApp) that uses the front facing camera to record video. I "think" I've finally resolved the issue, so thought I would post it here for any developers that run into the same thing....


Basically..
The android MediaRecorder allows you to define the Video and Audio Encoder, and according to the docs, DEFAULT can be used for each.
However, this refers to the main camera's settings, which is often a far higher spec than the front facing camera.
DEFAULT on the Droid Razr for example, selects an encoding (MPEG_4_SP) that isn't available for the Front facing camera, and this results in an empty (0kb) file being produced (or

Android Front Facing Camera - getSupportedVideoSizes
Android

Hi i am using the getSupportedVideoSizes method to get the supported video sizes which works great. I just need to know how to get it for front facing cameras only. Thanks


Android Phone with Front Facing Camera?
Android
Android Phone with Front Facing Camera?
 
After getting bored with my iPhone 3GS, I'm looking for an Android phone with front facing camera.(don't wanna go for iPhone 4 now :rolleyes:)
So far, I could find only 1 phone i.e. Samsung Galaxy S :(
My budget is $800, any suggestions?


Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .