Yes, I actually not hardcode the path. The app queries the content provider to get the picture path, which is different from the path I get from getExternalStorageDirectory(). Is there a better way for me to know if the picture is in internal build-in sd card or external removable sd card? Is there an API call to get the path for external removable sd card?
Sorry, this happens on Nexus 5, kitkat. Thanks On Sun, Feb 23, 2014 at 10:56 PM, TreKing <[email protected]> wrote: > > On Mon, Feb 24, 2014 at 12:27 AM, Yves Liu <[email protected]> wrote: > >> Here is the code snippet > > > OK, first thing is you should not be hard-coding paths. Use the external > storage APIs. > > Second, you didn't answer the other question: which platform version are > you running on? > > > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices > > -- > 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 unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

