What is the value of picturePath
? My hunch is that you're passing a simple filesystem path instead of a valid file:
URI.
You may want to consider using the Uri.fromFile
method instead of Uri.parse
to handle this correctly.
UPDATE: The Card
class no longer supports calling addImage
with a Uri
argument. Instead, load the image into a Bitmap
and call addImage(Bitmap)
.