Thank you Mark for your reply. Reg: Do not hardcode /sdcard. Use Environment. > > getExternalStoragePath() to get > the path to the SD card. > > 1. When I use the above method, I end up with the problem of device not mounted, how can I overcome this on an Emulator. 2. On the actual device, how can I determine the path? Can I use adb shell to navigate through the device?
Thank You again for your patience and help. Best Regards Acer On Wed, Feb 3, 2010 at 9:40 PM, Mark Murphy <mmur...@commonsware.com> wrote: > > 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 android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en