want i want to do is take a picture with my camera and than pass that image to another activity, in the next activity i would like to get that image and upload it. i tried using the following code and it works but the quality is very low.
private void putBitmapToIntentAndStartActivity(Bitmap bitmap)
{
Intent i = new Intent(getActivity(), ImagePreviewActivity.class);
// Bitmap b=scaleDown(bitmap,400,true);
ByteArrayOutputStream bs = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.PNG, 100, bs);
i.putExtra("imageByteArray", bs.toByteArray());
startActivity(i);
}
if i remove the marked line with the scale downmethod it wont work. if i use it it works but the quality is very low. is there any ideas how to pass that image and get it in the next activity with its full quality?
thanks! im sure its a very common issue.