On Wed, Jul 14, 2010 at 2:59 PM, kypriakos <[email protected]> wrote: > 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?
You cannot write to arbitrary paths on hardware. Please use getFilesDir() to find a safe spot to write files on the on-board flash for your application, or Environment.getExternalFilesDir() for the root of the external storage (SD card). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- 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

