Camera Preview Not Clear

All your problems with Audio, Video and Images.

Camera Preview Not Clear

Postby vipulshah2010 » Thu Mar 04, 2010 3:53 pm

I m devolping a Camera application.
when i run it on HTC Droid Eris it runs smoothly
but the problem is that.
while taking picture the picture is not clear,in preview i cant see anything.
the horizontal lines comes.
but after taking photo i get clear photo.
why is the preview is unclear.
plz help me
thnx in adavnced.
Junior Developer
Junior Developer
Posts: 14
Joined: Tue Feb 09, 2010 7:50 am
Location: India


Postby eyurdakul » Thu Mar 04, 2010 5:01 pm

once you get the parameters of the camera, set the preview format as you wish:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  2. Parameters params = camera.getParameters();
  4. params.setPreviewFormat(PixelFormat.JPEG);
Parsed in 0.013 seconds, using GeSHi

this works for android 1.5, i don't know how it is in android 2.0 but it can't differ too much.
Junior Developer
Junior Developer
Posts: 13
Joined: Thu Mar 04, 2010 1:19 pm


Return to Multimedia Problems

Who is online

Users browsing this forum: Exabot [Bot] and 4 guests