android Programming Glossary: surfacechanged
camera app not working? http://stackoverflow.com/questions/10186503/camera-app-not-working SurfaceHolder holder shutdown @Override public void surfaceChanged SurfaceHolder holder int format int width int height private..
Android ICS and MJPEG using AsyncTask http://stackoverflow.com/questions/10550139/android-ics-and-mjpeg-using-asynctask attrs super context attrs init context public void surfaceChanged SurfaceHolder holder int f int w int h thread.setSurfaceSize..
Full screen videoview without stretching the video http://stackoverflow.com/questions/12211837/full-screen-videoview-without-stretching-the-video string Toast.LENGTH_LONG .show finish public void surfaceChanged SurfaceHolder holder int format int width int height TODO Auto..
How can I capture a video recording on Android? http://stackoverflow.com/questions/1817742/how-can-i-capture-a-video-recording-on-android SurfaceHolder holder prepareRecorder public void surfaceChanged SurfaceHolder holder int format int width int height public..
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 IOException e public void invalidar invalidate public void surfaceChanged SurfaceHolder holder int format int w int h Camera.Parameters..
Android and MJPEG http://stackoverflow.com/questions/3205191/android-and-mjpeg attrs super context attrs init context public void surfaceChanged SurfaceHolder holder int f int w int h thread.setSurfaceSize..
Overlay images onto Camera preview SurfaceView http://stackoverflow.com/questions/3548666/overlay-images-onto-camera-preview-surfaceview camera.takePicture shutter raw jpeg @Override public void surfaceChanged SurfaceHolder arg0 int arg1 int arg2 int arg3 TODO Auto generated..
Android - Camera preview is sideways http://stackoverflow.com/questions/3841122/android-camera-preview-is-sideways in API 8. So this is how I implement it public void surfaceChanged SurfaceHolder holder int format int width int height if isPreviewRunning..
Touch and drag image in android http://stackoverflow.com/questions/4255859/touch-and-drag-image-in-android y 25 if y 405 y 405 return true @Override public void surfaceChanged SurfaceHolder holder int format int width int height TODO Auto..
How to set Android camera orientation properly? http://stackoverflow.com/questions/4645960/how-to-set-android-camera-orientation-properly targetHeight return optimalSize @Override public void surfaceChanged SurfaceHolder holder int format int width int height Camera.Parameters..
How can I use the animation framework inside the canvas? http://stackoverflow.com/questions/4938822/how-can-i-use-the-animation-framework-inside-the-canvas framesCount framesCount 0 @Override public void surfaceChanged SurfaceHolder holder int format int width int height @Override..
Screen blinking when using a webview with flash http://stackoverflow.com/questions/5095977/screen-blinking-when-using-a-webview-with-flash context getHolder .addCallback this @Override public void surfaceChanged SurfaceHolder holder int format int width int height Canvas..
android camera surfaceview orientation http://stackoverflow.com/questions/5157984/android-camera-surfaceview-orientation so I have a class that extends SurfaceView and overrides surfaceChanged just calls startPreview surfaceCreated opens camera edits params..
Android crash when app is closed and reopened http://stackoverflow.com/questions/5318847/android-crash-when-app-is-closed-and-reopened canvas.drawColor Color.WHITE @Override public void surfaceChanged SurfaceHolder holder int format int width int height resize..
How can I manipulate the camera preview? http://stackoverflow.com/questions/6478375/how-can-i-manipulate-the-camera-preview Log.w this.getClass .getName On Draw Called public void surfaceChanged SurfaceHolder holder int format int width int height public..
Android Camera will not work. startPreview fails http://stackoverflow.com/questions/7942378/android-camera-will-not-work-startpreview-fails e Debug.out Camera release failure. public void surfaceChanged SurfaceHolder holder int format int w int h Camera.Parameters.. if mCamera null mCamera.stopPreview @Override public void surfaceChanged SurfaceHolder holder int format int width int height Now that..
Custom camera android http://stackoverflow.com/questions/8543244/custom-camera-android e Toast.LENGTH_LONG .show @Override public void surfaceChanged SurfaceHolder holder int format int width int height TODO Auto.. t.getMessage Toast.LENGTH_LONG .show public void surfaceChanged SurfaceHolder holder int format int width int height Camera.Parameters..
LED flashlight on Galaxy Nexus controllable by what API? http://stackoverflow.com/questions/8876843/led-flashlight-on-galaxy-nexus-controllable-by-what-api needs to implement SurfaceHolder.Callback public void surfaceChanged SurfaceHolder holder int format int width int height public..
camera app not working? http://stackoverflow.com/questions/10186503/camera-app-not-working e e.printStackTrace @Override public void surfaceDestroyed SurfaceHolder holder shutdown @Override public void surfaceChanged SurfaceHolder holder int format int width int height private void shutdown Release MediaRecorder and especially the Camera..
Android ICS and MJPEG using AsyncTask http://stackoverflow.com/questions/10550139/android-ics-and-mjpeg-using-asynctask in stopPlayback e public MjpegView Context context AttributeSet attrs super context attrs init context public void surfaceChanged SurfaceHolder holder int f int w int h thread.setSurfaceSize w h public void surfaceDestroyed SurfaceHolder holder surfaceDone..
Full screen videoview without stretching the video http://stackoverflow.com/questions/12211837/full-screen-videoview-without-stretching-the-video new Runnable public void run Toast.makeText VideoPlayer.this string Toast.LENGTH_LONG .show finish public void surfaceChanged SurfaceHolder holder int format int width int height TODO Auto generated method stub public void surfaceCreated SurfaceHolder..
How can I capture a video recording on Android? http://stackoverflow.com/questions/1817742/how-can-i-capture-a-video-recording-on-android else recording true recorder.start public void surfaceCreated SurfaceHolder holder prepareRecorder public void surfaceChanged SurfaceHolder holder int format int width int height public void surfaceDestroyed SurfaceHolder holder if recording recorder.stop..
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 void onPreviewFrame byte data Camera arg1 invalidar catch IOException e public void invalidar invalidate public void surfaceChanged SurfaceHolder holder int format int w int h Camera.Parameters parameters camera.getParameters parameters.setPreviewSize..
Android and MJPEG http://stackoverflow.com/questions/3205191/android-and-mjpeg e public MjpegView Context context AttributeSet attrs super context attrs init context public void surfaceChanged SurfaceHolder holder int f int w int h thread.setSurfaceSize w h public void surfaceDestroyed SurfaceHolder holder surfaceDone..
Overlay images onto Camera preview SurfaceView http://stackoverflow.com/questions/3548666/overlay-images-onto-camera-preview-surfaceview private void takePicture TODO Auto generated method stub camera.takePicture shutter raw jpeg @Override public void surfaceChanged SurfaceHolder arg0 int arg1 int arg2 int arg3 TODO Auto generated method stub Camera.Parameters p camera.getParameters p.setPreviewSize..
Android - Camera preview is sideways http://stackoverflow.com/questions/3841122/android-camera-preview-is-sideways using the call to mCamera.setDisplayOrientation degrees available in API 8. So this is how I implement it public void surfaceChanged SurfaceHolder holder int format int width int height if isPreviewRunning mCamera.stopPreview Parameters parameters mCamera.getParameters..
Touch and drag image in android http://stackoverflow.com/questions/4255859/touch-and-drag-image-in-android y int event.getY if x 25 x 25 if x width x width if y 25 y 25 if y 405 y 405 return true @Override public void surfaceChanged SurfaceHolder holder int format int width int height TODO Auto generated method stub @Override public void surfaceCreated..
How to set Android camera orientation properly? http://stackoverflow.com/questions/4645960/how-to-set-android-camera-orientation-properly minDiff optimalSize size minDiff Math.abs size.height targetHeight return optimalSize @Override public void surfaceChanged SurfaceHolder holder int format int width int height Camera.Parameters parameters camera.getParameters List Size sizes parameters.getSupportedPreviewSizes..
How can I use the animation framework inside the canvas? http://stackoverflow.com/questions/4938822/how-can-i-use-the-animation-framework-inside-the-canvas framesCount if now framesTimer 1000 framesTimer now framesCountAvg framesCount framesCount 0 @Override public void surfaceChanged SurfaceHolder holder int format int width int height @Override public void surfaceCreated SurfaceHolder holder thread new..
Screen blinking when using a webview with flash http://stackoverflow.com/questions/5095977/screen-blinking-when-using-a-webview-with-flash public WhiteSurfaceView Context context super context getHolder .addCallback this @Override public void surfaceChanged SurfaceHolder holder int format int width int height Canvas canvas holder.lockCanvas if canvas null canvas.drawColor..
android camera surfaceview orientation http://stackoverflow.com/questions/5157984/android-camera-surfaceview-orientation camera surfaceview orientation Ok so I have a class that extends SurfaceView and overrides surfaceChanged just calls startPreview surfaceCreated opens camera edits params sets surfaceHolder surfaceDestroyed calls stopPreview release..
Android crash when app is closed and reopened http://stackoverflow.com/questions/5318847/android-crash-when-app-is-closed-and-reopened @Override public void onDraw Canvas canvas Clear the background canvas.drawColor Color.WHITE @Override public void surfaceChanged SurfaceHolder holder int format int width int height resize canvas here @Override public void surfaceCreated SurfaceHolder..
How can I manipulate the camera preview? http://stackoverflow.com/questions/6478375/how-can-i-manipulate-the-camera-preview int Math.random 100 int Math.random 100 200 200 rectanglePaint Log.w this.getClass .getName On Draw Called public void surfaceChanged SurfaceHolder holder int format int width int height public void surfaceCreated SurfaceHolder holder synchronized this ..
Android Camera will not work. startPreview fails http://stackoverflow.com/questions/7942378/android-camera-will-not-work-startpreview-fails if camera null camera.stopPreview camera.release catch Exception e Debug.out Camera release failure. public void surfaceChanged SurfaceHolder holder int format int w int h Camera.Parameters parameters camera.getParameters List Camera.Size supportedPreviewSizes.. will be destroyed when we return so stop the preview. if mCamera null mCamera.stopPreview @Override public void surfaceChanged SurfaceHolder holder int format int width int height Now that the size is known set up the camera parameters and begin the..
Custom camera android http://stackoverflow.com/questions/8543244/custom-camera-android catch IOException e Toast.makeText this CharSequence e Toast.LENGTH_LONG .show @Override public void surfaceChanged SurfaceHolder holder int format int width int height TODO Auto generated method stub @Override public void surfaceCreated.. Exception in setPreviewDisplay t Toast .makeText PreviewDemo.this t.getMessage Toast.LENGTH_LONG .show public void surfaceChanged SurfaceHolder holder int format int width int height Camera.Parameters parameters camera.getParameters Camera.Size size..
LED flashlight on Galaxy Nexus controllable by what API? http://stackoverflow.com/questions/8876843/led-flashlight-on-galaxy-nexus-controllable-by-what-api params mCamera.stopPreview mCamera.release Your activity needs to implement SurfaceHolder.Callback public void surfaceChanged SurfaceHolder holder int format int width int height public void surfaceCreated SurfaceHolder holder mHolder holder mCamera.setPreviewDisplay..
|