Hi,
I have a bitmap picPrev which I got from my online server. I want to
turn it into a file so I can send it.
I was exploring this method:
try {
FileOutputStream fos = super.openFileOutput(output.jpg,
MODE_WORLD_READABLE);
picPrev.compress(CompressFormat.JPEG, 75, fos);
I found the JoshKraker way to do this:
Saving the file first to the phone:
FileOutputStream Os = getAppContext().openFileOutput(Img + _PicId +
.jpg, Context.MODE_WORLD_READABLE);
Bm.compress(Bitmap.CompressFormat.JPEG, 100, Os);
Os.close();
Then getting the Uri to send to the Chooser intent:
2 matches
Mail list logo