Do not hardcode /sdcard, as that is wrong on most devices nowadays. Use Environment.getExternalStorageDirectory().
On Tue, Mar 8, 2011 at 7:44 PM, fadden <[email protected]> wrote: > On Mar 8, 5:04 am, OldSkoolMark <[email protected]> wrote: >> I looked at the related posts, but my problem seems more basic. Full >> path, or no path, file extension or not, I get a "Unable to open trace >> file '/sdcard/traceit.trace': Permission denied" error when I run on >> the emulator. Do I need to 'prepare' the emulated sd card? > > Use "adb shell" to get a shell in the emulator. Type "echo x > / > sdcard/foo", then "cat /sdcard/foo". Does that work? > > -- > 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 > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training Worldwide: http://commonsware.com/training -- 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

