You should use the calculation below. Width and height are decreased by corner value (half from each side).
sourceImg = Bitmap.createBitmap(sourceImg,
corner/2,
corner/2,
sourceImg.getWidth() - corner,
sourceImg.getHeight() - corner);