Unable to round the image corners second time

view story

http://stackoverflow.com – I am trying to add rounded corners to images in my android app. The code which I am using for adding rounded corners is: Uri selectedImage = data.getData(); String[] filePathColumn = { MediaStore.Images.Media.DATA }; Cursor cursor = getContentResolver().query(selectedImage, filePathColumn, null, null, null); cursor.moveToFirst(); int columnIndex = cursor.getColumnIndex(filePathColumn[0]); picturePath = cursor.getString(columnIndex); cursor.close(); final ImageView imageView = (ImageView) findViewById(R.id.imageView1); final SeekBar cornerRadi (HowTos)