Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 44
Registered: ‎02-11-2013
My Device: Z10
My Carrier: TELE2

Checking the image state

[ Edited ]

Hi all, I'm trying to show image after loading, but nothing happens, white screen observed. I'm using example code from the documentation , but it doesn't work! Is it a bug or I'm doing something wrong?

        ImageView {
            id: myImageView
            attachedObjects: [
                ImageTracker {
                    id: tracker
                    imageSource: "asset:///images/bigpic.jpg"

                    onStateChanged: {
                        if (state == ResourceState.Loaded) {
                            myImageView.image = tracker.image


Posts: 217
Registered: ‎09-18-2009
My Device: Z10
My Carrier: O2

Re: Checking the image state

I have never used ImageTracker. But the ImageView works for me.


ImageView {
    verticalAlignment: VerticalAlignment.Center
    imageSource: "asset:///images/image.png"
scalingMethod: ScalingMethod.None }

 Maybe, your image is scaled to the size of one single pixel if it does not have enough space.

Posts: 103
Registered: ‎12-31-2012
My Device: Blackberry 9810
My Carrier: Verizon

Re: Checking the image state

The imageTracker does have some issue...  I have felt the same issue in one of my previous projects...  Someone else had also reported the same .. a while back