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.
vipulshah2010
Junior Developer
Junior Developer
 
Posts: 14
Joined: Tue Feb 09, 2010 7:50 am
Location: India

Top

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
  1.  
  2. Parameters params = camera.getParameters();
  3.  
  4. params.setPreviewFormat(PixelFormat.JPEG);
  5.  
  6.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


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

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 14 guests