android Programming Glossary: camera.setparameters
EXIF orientation tag value always 0 for image taken with portrait camera app android http://stackoverflow.com/questions/13245556/exif-orientation-tag-value-always-0-for-image-taken-with-portrait-camera-app-and optimalSize.width optimalSize.height camera.setParameters parameters camera.startPreview startPreview @Override public.. result else parameters.set orientation portrait camera.setParameters parameters catch IllegalArgumentException e TODO Auto generated..
Android Camera in Portrait on SurfaceView http://stackoverflow.com/questions/2543059/android-camera-in-portrait-on-surfaceview orientation portrait parameters.setRotation 90 camera.setParameters parameters Is there something else I can try If this a bug in..
Extended SurfaceView's onDraw() method never called http://stackoverflow.com/questions/2687015/extended-surfaceviews-ondraw-method-never-called camera.getParameters params.setPreviewSize width height camera.setParameters params try camera.setPreviewDisplay holder catch IOException..
How to draw an overlay on a SurfaceView used by Camera on Android? http://stackoverflow.com/questions/2933882/how-to-draw-an-overlay-on-a-surfaceview-used-by-camera-on-android camera.getParameters parameters.setPreviewSize w h camera.setParameters parameters camera.startPreview @Override public void draw Canvas..
camera.setParameters failed in android http://stackoverflow.com/questions/3890381/camera-setparameters-failed-in-android failed in android I have included the camera functionality.. camera.getParameters parameters.setPreviewSize w h camera.setParameters parameters camera.startPreview @Override public void draw Canvas.. previewSize.width previewSize.height camera.setParameters parameters camera.startPreview You'll have to figure out a way..
How to set Android camera orientation properly? http://stackoverflow.com/questions/4645960/how-to-set-android-camera-orientation-properly parameters.setPreviewSize width height camera.setParameters parameters camera.startPreview android camera orientation.. camera.getParameters parameters.set orientation portrait camera.setParameters parameters Version 2.2 not for all devices camera.setDisplayOrientation..
Picture distorted with Camera and getOptimalPreviewSize http://stackoverflow.com/questions/5540981/picture-distorted-with-camera-and-getoptimalpreviewsize
Android: make animation from still images http://stackoverflow.com/questions/5611123/android-make-animation-from-still-images
How to capture the image and save it in sd card http://stackoverflow.com/questions/5661424/how-to-capture-the-image-and-save-it-in-sd-card 0 parameters.setPreviewSize size.width size.height camera.setParameters parameters camera.startPreview isPreviewRunning true @Override..
switch back/front camera on fly http://stackoverflow.com/questions/6599454/switch-back-front-camera-on-fly 1280 800 else params.setPreviewSize 640 480 camera.setParameters params private void stopCamera System.out.println stopCamera..
CamcorderProfile.QUALITY_HIGH resolution produces green flickering video http://stackoverflow.com/questions/7225571/camcorderprofile-quality-high-resolution-produces-green-flickering-video param camera.getParameters param.set cam_mode 1 camera.setParameters param In mediarecorder you can then use mediarecorder.setVideoSize..
Widget for turning on/off camera flashlight in android http://stackoverflow.com/questions/7515309/widget-for-turning-on-off-camera-flashlight-in-android Camera.Parameters.FLASH_MODE_TORCH try camera.setParameters param camera.startPreview isLightOn true catch Exception..
Android Camera will not work. startPreview fails http://stackoverflow.com/questions/7942378/android-camera-will-not-work-startpreview-fails optimalPreviewSize.width optimalPreviewSize.height camera.setParameters parameters camera.startPreview static Camera.Size getOptimalPreviewSize..
Custom camera android http://stackoverflow.com/questions/8543244/custom-camera-android size null parameters.setPreviewSize size.width size.height camera.setParameters parameters camera.startPreview inPreview true public void surfaceDestroyed..
Android Reduce Size Of Camera Picture http://stackoverflow.com/questions/8757341/android-reduce-size-of-camera-picture for Android 2.0 and above parameters.setRotation 0 camera.setParameters parameters camera.setPreviewDisplay holder catch IOException..
LED Flashlight does not work on Samsung Galaxy Nexus http://stackoverflow.com/questions/9505945/led-flashlight-does-not-work-on-samsung-galaxy-nexus parameters.setFlashMode Parameters.FLASH_MODE_OFF camera.setParameters parameters camera.stopPreview camera.release camera null.. parameters.setFlashMode Parameters.FLASH_MODE_TORCH camera.setParameters parameters camera.startPreview Any ideas For the sake of..
EXIF orientation tag value always 0 for image taken with portrait camera app android http://stackoverflow.com/questions/13245556/exif-orientation-tag-value-always-0-for-image-taken-with-portrait-camera-app-and optimalSize getOptimalPreviewSize sizes width height parameters.setPreviewSize optimalSize.width optimalSize.height camera.setParameters parameters camera.startPreview startPreview @Override public void surfaceCreated SurfaceHolder holder try if Build.VERSION.SDK_INT.. info.orientation degrees 360 360 camera.setDisplayOrientation result else parameters.set orientation portrait camera.setParameters parameters catch IllegalArgumentException e TODO Auto generated catch block e.printStackTrace catch SecurityException e..
Android Camera in Portrait on SurfaceView http://stackoverflow.com/questions/2543059/android-camera-in-portrait-on-surfaceview using Camera.Parameters parameters camera.getParameters parameters.set orientation portrait parameters.setRotation 90 camera.setParameters parameters Is there something else I can try If this a bug in Android or the phone how can I make sure that this is the..
Extended SurfaceView's onDraw() method never called http://stackoverflow.com/questions/2687015/extended-surfaceviews-ondraw-method-never-called int format int width int height Camera.Parameters params camera.getParameters params.setPreviewSize width height camera.setParameters params try camera.setPreviewDisplay holder catch IOException e e.printStackTrace camera.startPreview public void surfaceCreated..
How to draw an overlay on a SurfaceView used by Camera on Android? http://stackoverflow.com/questions/2933882/how-to-draw-an-overlay-on-a-surfaceview-used-by-camera-on-android holder int format int w int h Camera.Parameters parameters camera.getParameters parameters.setPreviewSize w h camera.setParameters parameters camera.startPreview @Override public void draw Canvas canvas super.draw canvas nothing gets drawn Paint p new..
camera.setParameters failed in android http://stackoverflow.com/questions/3890381/camera-setparameters-failed-in-android failed in android I have included the camera functionality in my application. I have also launched the app in the market... parameters and begin the preview. Camera.Parameters parameters camera.getParameters parameters.setPreviewSize w h camera.setParameters parameters camera.startPreview @Override public void draw Canvas canvas super.draw canvas Paint p new Paint Color.RED Log.d.. previewSize .... select one of previewSizes here parameters.setPreviewSize previewSize.width previewSize.height camera.setParameters parameters camera.startPreview You'll have to figure out a way to scale this so that you don't lose the aspect ratio etc...
How to set Android camera orientation properly? http://stackoverflow.com/questions/4645960/how-to-set-android-camera-orientation-properly h parameters.setPreviewSize optimalSize.width optimalSize.height parameters.setPreviewSize width height camera.setParameters parameters camera.startPreview android camera orientation surfaceview share improve this question From other member.. but it is good for X8 and Mini Camera.Parameters parameters camera.getParameters parameters.set orientation portrait camera.setParameters parameters Version 2.2 not for all devices camera.setDisplayOrientation 90 http code.google.com p android issues detail..
Picture distorted with Camera and getOptimalPreviewSize http://stackoverflow.com/questions/5540981/picture-distorted-with-camera-and-getoptimalpreviewsize
Android: make animation from still images http://stackoverflow.com/questions/5611123/android-make-animation-from-still-images
How to capture the image and save it in sd card http://stackoverflow.com/questions/5661424/how-to-capture-the-image-and-save-it-in-sd-card Size sizes parameters.getSupportedPreviewSizes Size size sizes.get 0 parameters.setPreviewSize size.width size.height camera.setParameters parameters camera.startPreview isPreviewRunning true @Override public void surfaceCreated SurfaceHolder holder TODO Auto..
switch back/front camera on fly http://stackoverflow.com/questions/6599454/switch-back-front-camera-on-fly if cameraId Camera.CameraInfo.CAMERA_FACING_BACK params.setPreviewSize 1280 800 else params.setPreviewSize 640 480 camera.setParameters params private void stopCamera System.out.println stopCamera method if camera null camera.stopPreview camera.setPreviewCallback..
CamcorderProfile.QUALITY_HIGH resolution produces green flickering video http://stackoverflow.com/questions/7225571/camcorderprofile-quality-high-resolution-produces-green-flickering-video high definition recording to work camera Camera.open Camera.Parameters param camera.getParameters param.set cam_mode 1 camera.setParameters param In mediarecorder you can then use mediarecorder.setVideoSize 1920 1080 although this will now also work mediarecorder.setProfile..
Widget for turning on/off camera flashlight in android http://stackoverflow.com/questions/7515309/widget-for-turning-on-off-camera-flashlight-in-android flash mode Parameters param camera.getParameters param.setFlashMode Camera.Parameters.FLASH_MODE_TORCH try camera.setParameters param camera.startPreview isLightOn true catch Exception e Toast.makeText context R.string.no_flash Toast.LENGTH_SHORT..
Android Camera will not work. startPreview fails http://stackoverflow.com/questions/7942378/android-camera-will-not-work-startpreview-fails w h if optimalPreviewSize null parameters.setPreviewSize optimalPreviewSize.width optimalPreviewSize.height camera.setParameters parameters camera.startPreview static Camera.Size getOptimalPreviewSize List Camera.Size sizes int w int h final double..
Custom camera android http://stackoverflow.com/questions/8543244/custom-camera-android size getBestPreviewSize width height parameters if size null parameters.setPreviewSize size.width size.height camera.setParameters parameters camera.startPreview inPreview true public void surfaceDestroyed SurfaceHolder holder no op Camera.PictureCallback..
Android Reduce Size Of Camera Picture http://stackoverflow.com/questions/8757341/android-reduce-size-of-camera-picture Android 2.2 and above camera.setDisplayOrientation 0 Uncomment for Android 2.0 and above parameters.setRotation 0 camera.setParameters parameters camera.setPreviewDisplay holder catch IOException exception camera.release camera.startPreview public void surfaceDestroyed..
LED Flashlight does not work on Samsung Galaxy Nexus http://stackoverflow.com/questions/9505945/led-flashlight-does-not-work-on-samsung-galaxy-nexus light is on we will turn it off parameters camera.getParameters parameters.setFlashMode Parameters.FLASH_MODE_OFF camera.setParameters parameters camera.stopPreview camera.release camera null else light is off we turn it on camera Camera.open parameters.. turn it on camera Camera.open parameters camera.getParameters parameters.setFlashMode Parameters.FLASH_MODE_TORCH camera.setParameters parameters camera.startPreview Any ideas For the sake of completeness these are the permissions I added to the Androidmanifest.xml..
|