Always use http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory() to find the proper location of the sd-card. Never hard-code it in your code.
Xav On Thu, Jul 8, 2010 at 5:31 AM, Adrian Vintu <[email protected]> wrote: > thank you Mark. good to know :) > > > On Thu, Jul 8, 2010 at 2:27 PM, Mark Murphy <[email protected]> wrote: >> >> On Thu, Jul 8, 2010 at 8:16 AM, Adrian Vintu <[email protected]> >> wrote: >> > where does the "/mnt" come from in /mnt/sdcard/myapp/customer.db ? >> > >> > could it be that your path is wrong? should it not be /sdcard/...? >> >> The path varies by device and Android release. /mnt/sdcard is typical >> for Android 2.2, at least in the emulator. >> >> -- >> Mark Murphy (a Commons Guy) >> http://commonsware.com | http://github.com/commonsguy >> http://commonsware.com/blog | http://twitter.com/commonsguy >> >> Android App Developer Books: http://commonsware.com/books >> >> -- >> 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 > > -- > 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 -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- 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

