Welcome!

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

Reply
Developer
Posts: 179
Registered: ‎07-19-2012
My Device: Z10 Limited Edition and Dev Alpha C
My Carrier: Movistar-Venezuela

How Share Photo qml?

I want to know how I can create a qml to load images from a website and whene following menu:

 

IMG_00000056.png    IMG_00000057.png

 

    WebImageView 
    {                 
      url: "http://myimage.com/loadmeup.png"
      horizontalAlignment: HorizontalAlignment.Right 
      verticalAlignment: VerticalAlignment.Center 
      preferredWidth: 100.0
      preferredHeight: 100.0
      minWidth: 100.0
      minHeight: 100.0                   
    }

 This is the code that loads images from web and it works but I want that image to set as the BBM avatar, or save them as I can do?

 


Follow me in Twitter:

@Marcossit

BBM Channel:

MarcossitDev: C0002C366  

DeviceSuite For BlackBerry 10:

Link to Download DeviceSuite:

Support was successful? Accept as Solution and click on:


BlackBerry Development Advisor
Posts: 15,124
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: How Share Photo qml?

Here is some sample QML that uses the Inovcation framework to set the BBM profile picture.

 

        InvokeActionItem {
            title: "Set BBM Avatar Pic"
            query {
                invokeTargetId: "sys.bbm.imagehandler"
                invokeActionId: "bb.action.SET"
                //uri: "file:///path/to/your/file.png"

            }
        }

 

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 71
Registered: ‎09-19-2012
My Device: Z10 very soon
My Carrier: Play

Re: How Share Photo qml?

@Mark, Can we set http url to image in uri field of InvokeActionItem ?

 

 

Developer
Posts: 179
Registered: ‎07-19-2012
My Device: Z10 Limited Edition and Dev Alpha C
My Carrier: Movistar-Venezuela

Re: How Share Photo qml?

Thanks Mark, but I want you to let me invoke the image down menu to save the image, replacing BBM avatar image, or set as wallpaper.


Follow me in Twitter:

@Marcossit

BBM Channel:

MarcossitDev: C0002C366  

DeviceSuite For BlackBerry 10:

Link to Download DeviceSuite:

Support was successful? Accept as Solution and click on:


BlackBerry Development Advisor
Posts: 15,124
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: How Share Photo qml?

The invocation framework won't download and save the image for you.  This example demonstrates downloading images  

 

https://github.com/blackberry/Cascades-Samples/tree/next/tldr

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker