I'm trying to use the TinyDB to pass information about an ImageSprite from one screen to another. I have been able to do this successfully before in the same app so I'm confused why it's not working here. This is what I'm trying to do (also attached a diagram incase it makes more sense):
From Screen1, tapping a photo thumbnail opens up Detail Screen.
On Detail Screen, you will see the photo with an ImageSprite (Highlight1) on it.
I would like to store the information about this image sprite in the TinyDB.
When I go back to Screen1 and tap Demo, I'd like to see the photo with an Link1 ImageSprite that has the parameters as the one on the detail screen.
Eventually I'd like to pass things like the width, height, location so it appears in the same as the one on Detail Screen.
Right now I'm just trying to pass the image sprite's picture to start.
But when I go to Demo screen I get the error "Property getter was expecting a ImageSprite component but got a String instead."
I understand this means it's looking for an ImageSprite and getting a String, but I don't understand why it's getting a string when I've stored the Highlight1 ImageSprite as the value for my Hotspot1 key. I even set the key to a dummy sprite on Screen1 so it should start with a sprite.
See screenshots for more info. Can also attach the .aia if it's easier.
(I am testing by downloading the actual .apk because I need the camera and multiple screens)