"three means use absolute path" <= yes, i'm right, but android add
another / i don't know why, on avd only maybe...
Config.PathOfCache => /data/nameofapp/
nameofpic => XXXXXX.jpg
Config.PathOfCache + nameofpic => /data/nameofapp/XXXXXX.jpg
file:// + Config.PathOfCache + nameofpic =>
file:///data/nameofapp/XXXXXX.jpg (3 /)
so for me :
Android.Net.Uri.WithAppendedPath(Android.Net.Uri.Parse("file://"),
Config.PathOfCache + nameofpic is good
But error return 4 /, not 3
i look Path.Combine for see
Android.Net.Uri.WithAppendedPath(Android.Net.Uri.Parse("file://"),
Config.PathOfCache + nameofpic
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