That's a bit funny: http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory() returns a File and
http://developer.android.com/reference/java/io/File.html#getAbsolutePath() returns a String Did you mean: File root = new File(Environment.getExternalStorageDirectory().getAbsolutePath()); ? On Thursday, July 19, 2012 8:30:41 PM UTC+1, Joe wrote: > > Hi! > > I found the solution by changing > > File root = Environment.getExternalStorageDirectory(); > > for > > File root = Environment.getExternalStorageDirectory().getAbsolutePath(); > > It works at last! > -- 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

