I have this problem.I am using decodeByteArray to decode and decrypted data as an image and after that I am trying to get the actual size (in bytes , not width & height) of that image and show it in textview.
Bitmap bitmap = BitmapFactory.decodeByteArray(decryptedData , 0, decryptedData .length); //decoding bytearrayoutputstream to bitmap
int i = bitmap.getRowBytes() * bitmap.getHeight() ;
TextView txt = (TextView) findViewById(R.id.text);
txt.setText(i);
The code is running without any errors,but the size is not showing up in the TextView.Any suggestions?
Please try this instead and tell me the result