Crop a Bitmap image

I used this method to crop the image and it works perfect: Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.xyz); Bitmap resizedBmp = Bitmap.createBitmap(bmp, 0, 0, yourwidth, yourheight); createBitmap() takes bitmap, start X, start Y, width & height as parameters.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)