Is this right to get Bitmap size after encoding? what if I need to use it before encoding when select image?
if (v == buttonUpload) {
if (bitmap.getByteCount() > 1000000) {
Toast.makeText(getActivity().getApplicationContext(), "please check image size!!", Toast.LENGTH_SHORT).show();
} else {
uploadImage();
}
}