Thanks, it worked like a charm.
On Sep 19, 4:39 pm, Mark Murphy <[email protected]> wrote: > On Sun, Sep 19, 2010 at 10:32 AM, ayanir <[email protected]> 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/commonsguyhttp://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 [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-developers?hl=en

