Hi, Thank you for your reply. I have a couple follow up comments/questions related to the responses. I have included these inline.
On Mon, Feb 6, 2012 at 12:25 PM, TreKing <[email protected]> wrote: > On Mon, Feb 6, 2012 at 11:15 AM, John-Marc Desmarais <[email protected]> wrote: >> >> I have an Override on onPause to save settings to a file > > > Why not just use SharedPreferences? I felt it would be quicker to serialize my class into a byte stream than saving each configuration parameter separately and I couldn't find the ability to store a byte stream using SharedPreferences. >> >> Can anyone provide insight into this problem? > > > When you check the file existing, you use the "raw" file name, not relative > to your data directory. Of course, that does not exist, as the file is > relative to your data directory. > > Your subsequent call to openFileInput would likely succeed. How do I handle the byte[] settingsBuffer = new byte[(int) inputFile.length]; without opening a File? i.e. How would I figure out in advance the size of the byte buffer I need to receive my file? Or, what path can I append to my open file to allow it to find the settingsFile, or is it not that easy? -jm -- 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

