Yes, I did. The problem is like this. In my gallery, say, there are 6
pictures, when i do the file.exist call, (with the path I got from
Gallery), two works, and 4 of them are not working.
On Tue, Feb 25, 2014 at 8:15 AM, TreKing treking...@gmail.com wrote:
On Tue, Feb 25, 2014 at 1:26 AM,
On Tue, Feb 25, 2014 at 1:26 AM, Yves Liu yves...@gmail.com wrote:
Sorry, this happens on Nexus 5, kitkat.
That's what I thought. Next question - have you declared the new external
storage permission?
https://developer.android.com/about/versions/android-4.4.html
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
This is the strangest thing.
--
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
This is the strangest thing. This problem I found is on Nexus 5. Maybe this
applies to all Android devices.
I downloaded a picture from gmail, and from Gallery, i can see that
picture. By click on Details, I can see the file path
is /storage/emulated/0/Download/12345.jpg. Then in my app, I
On Sun, Feb 23, 2014 at 6:41 PM, yves...@gmail.com yves...@gmail.comwrote:
Then in my app, I tried to access that picture, it says file is not found.
What API level are you running and how are you accessing the file?
TreKing,
Here is the code snippet
File file = new File( /storage/emulated/0/Download/12345.jpg);
if(file.exists())
return true;
And another file which I can see through astro file manager there works.
On Sun, Feb 23, 2014 at 10:20 PM, TreKing treking...@gmail.com wrote:
On Sun, Feb
On Mon, Feb 24, 2014 at 12:27 AM, Yves Liu yves...@gmail.com 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?
8 matches
Mail list logo