same problem..
i try to this too :
i use
imageView.SetImageURI(Android.Net.Uri.WithAppendedPath(Android.Net.Uri.Parse("file://"
+ Config.PathOfCache ), nameofpic));
but i've the same problem on avd only :(
I'm afraid it's a monodroid bug, and an existing bug with some
harddevice too, not avd only..
the problem is with Android.Net.Uri.WithAppendedPath.. because he add a
/ after.. i've for beginning file:// + /data..., and at the end, error
on file : / / / / data
Le 29/05/2012 11:52, Matthew Leibowitz a écrit :
This might be a problem with too many slashes.
You have four. I may be wrong, but two means relative path, three
means use absolute path and four means use absolute path to the zero
length directory name. eg: /[no_name]/file.jpg
Try using Path.Combine and see its that helps.
Matthew
On May 29, 2012 11:45 AM, "michelw" <[email protected]
<mailto:[email protected]>> wrote:
Hello,
I've a problem with file://
i've pics on /data/data/appname.appname/app_cache/_picXXXXXXXX.jpg
var pathofpic =
"/data/data/appname.appname/app_cache/_picXXXXXXXX.jpg"
i use
imageView.SetImageURI(Android.Net.Uri.WithAppendedPath(Android.Net.Uri.Parse("file://"),
Config.PathOfCache + nameofpic));
On harddevice, i've no problem, but on avd he said: cannot resolve
file:////data/data/nameofappli/..........jpg
(monodroid 4.2.2, android 2.1 on avd, 2.3 on hard device)
_______________________________________________
Monodroid mailing list
[email protected] <mailto:[email protected]>
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid