On Sun, Sep 19, 2010 at 10:32 AM, ayanir <ayanir...@gmail.com> wrote: > I think that there should be a general system ContentProvider for that > exact purpose - I could only hope it will be one day...
I rather doubt that will happen, at least in terms of the core OS. Android is very determined to avoid applications leaving crap behind, even if, in your case, that "crap" is intentional. > could you please refer me to an example how to create/read a file > using the external storage? Add the WRITE_EXTERNAL_STORAGE permission to your app. Use Environment.getExternalStorageDirectory() to get the path to external storage. From there, it is standard Java I/O to read and write files. Use Environment.getExternalStorageState() and the ACTION_MEDIA_ broadcast Intents to monitor when external storage is available. Note that, since the user can mount external storage on a host computer, external storage is not available 100% of the time. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en