Android uses a different way than the traditional desktop operating
system to store data - through the content provider, and Android does
not provide a built-in file manager. But there is still a demand on
file manager on Android device, for example, deleting files on the SD
card to free space, etc.

While trying to develop a file manager, we do find that deleting files
from the file manager may break some applications data integrity, for
example, for the media files(audio/video), besides the media file in
the file system, Android media provider also record some meta-data in
the media provider database, deleting the file from the file system
will not automatically update the records in the media database, the
consequence is that the user can still see the content in the music or
gallery application though the file associated with it has already
been removed. One possible solution would be to broadcast the message
and let the appropriate application, for example, the media scanner,
to update the database, or another way - let the file manager call
media content provider interface to delete the content.

We are wondering whether it is a correct decision to develop a file
manager for an Android device from the software architecture point of
view. Anything to care about from the security perspective? How about
if we limit the access only to the SD card?

Thanks,
Yangqing.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to