I have tested my application on various mobiles. My application main functionality is taking picture and recording video through camera. I didn't faced an issue on most of the mobiles. But I faced the issue on Motorola DROID RAZR. My application working fine when i taking the picture. But I facing an issue when I recording a video. Blank screen is showing when I recording a video. There is no preview showing on the mobile screen. I don't why its happening. But most of the mobile its working fine. And taking picture working fine on this mobile.
Motorola DROID RAZR configuration, 1. OPERATING SYSTEM : Android v2.3.5. 2. CAMERA : HD camera, 8MP. 3. PROCESSOR : TI OMAP4430 Here is my code, Camera camera = Camera.open(); Parameters params = camera.getParameters(); camera.setDisplayOrientation(90); camera.setParameters(params); camera.setDisplayOrientation(90); MediaRecorder recorder = new MediaRecorder(); recorder.setCamera(camera); recorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); recorder.setProfile(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH)); recorder.setVideoSize(640, 480); recorder.setMaxDuration(25000); recorder.setOrientationHint(90); I have tested this application on Motorola Droid Razr emulator. I got the following exception, MediaRecorder(430): prepare failed: -17 System.err(430): java.io.IOException: prepare failed. System.err(430): at android.media.MediaRecorder._prepare(Native Method) System.err(430): at android.media.MediaRecorder.prepare(MediaRecorder.java:590) But I didn't get this exception on other emulator. How to resolve this issue? Note : I already asked on this forum, http://stackoverflow.com/questions/9770986/camera-issue-with-motorola-droid-razr-when-i-recording-the-video -- 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