java - call to Bitmap.compress does not return - and NO exception -
on android following image. it never gets past bitmappicture.compress line - seems sit there , hang. the line above byte count returns 40000. i never see compress done, or other output after 'compress'. try { final int compression_quality = 100; string encodedimage; bytearrayoutputstream bytearraybitmapstream = new bytearrayoutputstream(); log.e("error","compress" + bitmappicture.getbytecount()); bitmappicture.compress(bitmap.compressformat.png, compression_quality, bytearraybitmapstream); log.e("error","compress done"); byte[] b = bytearraybitmapstream.tobytearray(); log.e("error","bytear"); encodedimage = base64.encodetostring(b, base64.default); log.e("error","jsondata encodedimage returned"); return encodedimage; } catch (exception e) { errorlogger.adderror(e.getmessage(), 199); log.e("error","