Trying to store an image to the Image content provider. Which of the
above should I use to insert an image? Also, I heard people had
problems with the image content provider... is it (still) broken/non-
functional?
ContentValues imageValues = new ContentValues();
imageValues.put(Images.ImageColumns.TITLE, "A Large, Brown
Armadillo");
Uri uri = _resolver.insert(Images.Media.EXTERNAL_CONTENT_URI,
imageValues);
OutputStream outStream = _resolver.openOutputStream(uri);
bitmap.compress(Bitmap.CompressFormat.JPEG, 50, outStream);
outStream.close();
Thanks,
James
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---