Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

dynamically assigning an image to a Button crashes Android only

$
0
0

I'm doing this in a callback from a SignanturePad

buttonCustomerSignature.Image = new FileImageSource { File = sig.Filename };

this works fine on iOS. But on Android it hangs and eventually crashes with

No Package identifier when getting value for resource number 0x0000000d

on Android, sig.Filename is /data/data/m.transport.Android.Alpha/cache/tmp5637bbe6.png and is a valid png that exists.

Should this work? Do I need to do something different on Android in order for FileImageSource to resolve that path, or should I use a different location for storing the image file?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>