[android-developers] Re: Write PNG to PIcture Directory (FileOutputStream)

2008-11-18 Thread Mike Lockwod

If you just write the file to the SD card and do nothing, it will not
be added to the media database until the media scanner is run again.
The media scanner runs automatically at times where the user might
have modified files on the SD card (like after inserting a card or
after exiting USB mass storage mode).

But if you write new files programatically, your app needs to tell the
media scanner to scan the new file and add it to the database.  The
class android.media.MediaScannerConnection provides the API for doing
this.

Mike

On Nov 15, 10:18 pm, joshbeck [EMAIL PROTECTED] wrote:
 Actually, that code above isn't quite correct.
 I am writing png files to the sdcard with no problem.

 I'd like them to show up when the user chooses wallpaper -  Pictures
 or camera - menu - Pictures.

 Are those displays databased or something?

 Thanks again,JoshBeck
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Write PNG to PIcture Directory (FileOutputStream)

2008-11-15 Thread joshbeck

Actually, that code above isn't quite correct.
I am writing png files to the sdcard with no problem.

I'd like them to show up when the user chooses wallpaper -  Pictures
or camera - menu - Pictures.

Are those displays databased or something?

Thanks again,
Josh Beck


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---