1

saving canvas to jpg image gives black image only android

view story
linux-howto

http://stackoverflow.com – I am trying to save the canvas into image format....i am using SurfaceView class to draw on canvas and created canvas using below code : Bitmap saveBitmap = Bitmap.createBitmap(getWindowManager() .getDefaultDisplay().getWidth(), getWindowManager() .getDefaultDisplay().getHeight(), Bitmap.Config.ARGB_8888); Canvas c = new Canvas(saveBitmap); c = holder.lockCanvas(); onDraw(c); holder.unlockCanvasAndPost(c); After that my save image function is given below : public void saveImage() { AlertDialog.Builder editalert = new AlertDia (HowTos)