> I have a library that takes a File object as a parameter to one of the > functions. > > I am getting the file like this: > > this.openFileOutput("myFile", MODE_PRIVATE) > > I need to load this file from the system, however, I don't know how to > convert FileOutputStream to File. Or is there another way of doing > this?
Instead of openFileOutput(), use getFilesDir() to get a File pointing to the directory where openFileOutput() files go. Then, use normal File constructors to create a File object pointing to the file you want to create or use. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- 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