All the informations are here i guess! But there is not an example :( ! Plus, the examples in in the android dev site are not very clear! Please, can you help me(i'm noob, i know :( :D!) ? Thanks. Accessing files on external storage
If you're using API Level 8 or greater, use getExternalFilesDir()<http://developer.android.com/reference/android/content/Context.html#getExternalFilesDir(java.lang.String)> to open a File <http://developer.android.com/reference/java/io/File.html> that represents the external storage directory where you should save your files. This method takes a type parameter that specifies the type of subdirectory you want, such as DIRECTORY_MUSIC<http://developer.android.com/reference/android/os/Environment.html#DIRECTORY_MUSIC> and DIRECTORY_RINGTONES<http://developer.android.com/reference/android/os/Environment.html#DIRECTORY_RINGTONES> (pass null to receive the root of your application's file directory). This method will create the appropriate directory if necessary. By specifying the type of directory, you ensure that the Android's media scanner will properly categorize your files in the system (for example, ringtones are identified as ringtones and not music). If the user uninstalls your application, this directory and all its contents will be deleted. If you're using API Level 7 or lower, use getExternalStorageDirectory()<http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory()>, to open a File <http://developer.android.com/reference/java/io/File.html> representing the root of the external storage. You should then write your data in the following directory: /Android/data/*<package_name>*/files/ The *<package_name>* is your Java-style package name, such as " com.example.android.app". If the user's device is running API Level 8 or greater and they uninstall your application, this directory and all its contents will be deleted. 2011/4/4 TreKing <treking...@gmail.com> > Review this: > http://developer.android.com/guide/topics/data/data-storage.html > > <http://developer.android.com/guide/topics/data/data-storage.html>And > Google "Java IO". > > Once you have a better understanding of how the system deals with Files and > what you're actually trying to do it should be a lot easier. > > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices > > -- > 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 > -- 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