Re: [android-developers] create a New File ( to be sent ) from a Bitmap

2010-07-30 Thread Pedro Teixeira
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 inten

[android-developers] create a New File ( to be sent ) from a Bitmap

2010-07-30 Thread Pedro Teixeira
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); fos.