I noticed that using the standard Java to create the new file stalls:
File UIDfile = new File("/data/local/tmp/myUID.txt");
UIDfile.createNewFile();
Is this something that should not be used in Android? Anyone
else faced this issue before? Should I convert these to:
FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);
fos.write(string.getBytes());
fos.close();
Thanks
On Jul 14, 2:26 pm, kypriakos <[email protected]> wrote:
> Is it possible to write and read files on Android? I know it
> sounds a bit silly to ask this but I found out that writing
> a file in the same directory as where the app is executing
> stall my process. Where in the dir hierarch do Android apps
> execute and if I was to write or read a file do I need to do
> so in a particular directory?
>
> Thanks
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en