What to do when any media files are deleted?

by skan95 » Wed, 20 Jan 2010 19:19:33 GMT

Sponsored Links

I am testing Bluetooth file transfer.

When any files are transfered by FTP via BT,
mMediaScanner.scanFiles(mFiles, null);  is used to notify MedisScanner
adding new media files.

But if any files are deleted by FTP, what api should be called?

To sum it up, current problem is that,
1. When new media files are added, MediaScanner is notified through
2. but how should MediaScanner be notified when any files are deleted
on SD card?

Please share your suggestion.


Other Threads

1. What is a good way to download a webpage for offline reading?


   I was wondering what would be a good way to download a webpage for  
offline reading?

   I first thought about downloading the html source, grep it for the  
image tag's soure attribute and download the image. After rewriting  
the image tag in a way that it reffers to the local file and storing  
the html and the image content locally it should be possible to  
display the webpage from the local filesystem.
But it could be a PITA to find all the image tags, would replicate  
browser functionality (parser) and wouldn't take care of images that  
are referenced in the css or set by Javascript.

   WebView offers a capturePicture() method. But even if I would find  
a way to easily store and retrieve the images, I can't use the zoom  
functionality of WebView anymore as well as the care for orientation  
changes and of course clicking on the links wouldn't be possible either.

   It seems that it could be possible to download the source, hand it  
to WebView and capture all requests for external resources, so that  
they can be downloaded and stored locally. So when later on loading  
the locally stored html the events could be overridden again and the  
images could be loaded locally.

   Does this make sense? Is that possible? Can WebView load/parse/ 
(render) a webpage when not displayed? Did anybody do this  
successfully or is this to much off the beaten (and tested) path?



2. how to implement a Full-screen handwriting input method

Hello, every body!  I want to implement   a  Full-screen handwriting
input method. First step,I
need draw the handwriting on the screen. The handwriting may cover all
the views below   it.
How can i  do? I hope any one can help me.


3. Convert the AMR

4. Droid Fonts License: does it allows to redistribute them?

5. abusive, explicit language comments in the Android Software Market

6. 2 ListViews vertically and auto growing/shrinking

7. The detail changes of Android kernel