Hi

I am trying to open one of my pictures and set it as imageview. I have
found the setImageUri method but it's not working as I am expecting it
to. I'm trying with these arguments:
-Uri.fromFile(sdFiles[position]) doesnt work where sdFiles is an array
of Files (returns file:///sdcard/gif/toto.png)
-(new Uri.Builder()).path(sdFiles[position].getAbsolutePath()).build()
works (!!!) (returns just /sdcard/gif/toto.png)

Is this a bug?
I would like to use the first proposition which is nicer. And also
second method doesn't work with filenames including spaces " ".

Thanks for your help
PA

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to