> After hardcoding the path as per the code below (pointed by Mahendra) I'm > able to write the file onto the SD Card and see the same in DDMS > /sdcard/somefilename
Do not hardcode /sdcard. Use Environment.getExternalStoragePath() to get the path to the SD card. > 2. Would the path name like /sdcard be the same when connected to the > actual > device. No. Some devices have their SD card under different paths. Use Environment.getExternalStoragePath() to get the path to the SD card. -- 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 [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

