Share images in listview

Hello

I'm loading (included in the assets of the project) png images in a ListView. Then I want to trigger the framework of the call to share the selected image. And I want to let him choose what applications list. Is this the right way to go:

ListView {
    layout: GridListLayout {}
    dataModel: XmlDataModel {
        source: "data.xml"
    }

    listItemComponents: [
        ListItemComponent {
            type: "image"

            ImageView {
                imageSource: ListItemData.imagePath
            }
        }
    ]
    attachedObjects: [
        Invocation {
            id: invoke
            query {
                mimeType: "image/png"
            }
        }
    ]

    onTriggered: {
        var selectedItem = dataModel.data(indexPath);
        invoke.uri = selectedItem.imagePath;
        invoke.trigger("bb.action.SHARE");
    }
}

Thanks for your help,
Laurent

OK sorry it works. I couldn't scroll because listview is initially another container.

Tags: BlackBerry Developers

Similar Questions

  • How to share images of web gallery for Lightroom CC

    I don't have my own web site.  I understand how to share images, but I would like to share the Gallery I can create on Lightroom.  How can I do?  My monthly contract CC allows me to create a website via Lightroom CC?  Or can I use Flickr or Shutterfly?

    Take a look at Portfolio Adobe which is part of your subscription to the CC and allows you to use the images synchronized to a format web site. You can point to your own domain name, if you have a.

    This is a simple "retractable" solution If it is not enough, you need to get your own website and know enough HTML to integrate product LR web galleries inside.

  • Share image

    Trying to share a picture by invokign sharing stuff.

    I cannot share any hardcoded URI problem, but I can't share those dynamic.

    I'm doing something wrong?

        InvokeActionItem {
                        id: invoke
                        query {
                            mimeType: "image/png"
                            invokeActionId: "bb.action.SHARE"
                            //uri: "file:///accounts/1000/shared/camera/IMG_20130439.jpg"
                            //uri: "file://" + _scratchpad.filename
                        }
                        onTriggered:
                        {
                            uri = "file://" + _scratchpad.filename;
                        }
    
                    }
    

    Take a look at my "ShareFile" example at this link: https://github.com/blackberry/Cascades-Community-Samples

    You will see that you cannot change the URI in C++, QML.

  • Share images in Lightroom iOS Mobile app number

    I have problems of sharing or downloading of the images from the camera roll in iOS LR Mobile app.

    Regularly, the image produced is just black. This happens, when the auto tone is set. Once, the exported image is ok. I'm not aware if there is something new or simply since 2.3/LR 6.5.

    I just send you a private message. -Guido

  • What is the best way to share images via a gallery?

    Hello.

    I would like to know the best way to create a web gallery to send to people so that they can see all the photos of their children play soccer and download what they want.

    I see that there is a way to export a web gallery in LR. Is this the best way?

    I usually don't use LR, and I used pass before and would really like to know if Adobe offers something similar.

    Thank you!

    Jim

    You can share a public url to a file or a folder by using the Send link. More here Creative Cloud help | Share files and folders.

    You can share a folder using workprivate. More here Creative Cloud help | Collaborate by sharing folders.

  • Photos saving disk space to share images with your iPhoto or Aperture libraries.  Should which library I use to remove old photos?  If I delete old photos in iPhotos appear in pictures and vice versa?

    Should which library I use to remove old photos?  iPhoto or Photos?

    If you migrated a library iPhoto to Photos and you want to release the storage, you should remove the pictures of these two libraries.

    Related photos storage only comes out, after that the last linked file has been deleted.  If you do not use more of the iPhoto library, move it to a backup drive. Then simply delete the photos of your new photo library.

  • Share on Istagram image

    Hello

    In my new project, I need to share images on Istagram. Pls help where to start and is possible or not bb 10?

    Looking at the development of Instagram API, I see that it uses OAuth 2.0 for authentication:

    http://Instagram.com/developer/authentication/

    We have 2 published samples which shows how to use OAuth 2.0 in a WebWorks 10 BlackBerry application:

    I recommend to use these samples as a guide.  You should be able to integrate with Instragram in this way (unless you have all the device-specific features / restrictions).

  • Size image or icon for listview settings?

    Anyone know if there is a reference to the image / size of the icon for ListView?  I want to reproduce the images of listview, as shown in the main page of settings app:

    (image) On

    (image) Network connections

    (image) Notifications

    Etc.

    Is it possible to see the raw images to icon in the source somewhere?

    Hello!

    https://developer.BlackBerry.com/DevZone/design/BB10/icon_types_and_sizes.html

    I use 81 x 81 px and they seem authentic.

    But the images are not correctly aligned in DefaultListItem - had to create a custom list item.

    Don't know if the source is available somewhere. If you find it please post a link.

    You can copy & paste them on a screenshot (waiting all the volume buttons 3 to take a screenshot).

  • How to use iCloud in the image of the host for forum messages?

    I've just upgraded my Aperture library to Photos and spent three weeks to download all my photos on the cloud.  Now that they are on the rise in the cloud, I was wondering if I can use iCloud to host images for posting on internet forums and others?  Many of them will not directly let you download a picture, a link just here where she is already hosted (using the [IMG] tags).  In the past I had used SmugMug for this, but it seems silly to pay two subscriptions for the pictures of clouds (my library is big enough I'll have to pay Apple a monthly fee for additional storage space).

    I guess the way to proceed is to implement a shared Album and set it on the Public website.  It doesn't seem to be an option in the Photos app or site generated, to set the resolution of the images related to.  Any suggestions?

    Also: If you are going to edit the original photo, the shared up-to-date automatically version?  In my quick test convert the picture black white & in my pictures library does not change appearance of the image in the shared Album.  Sounds strange because it suggests Apple organize two versions of the image - one for me and one for sharing.  Surely, who double their storage needs?  If the photos are not synchronized, I might be better off just export those I want to publish on Flikr, or something similar (but free), which is correctly set up for what I'm trying to do.

    Thank you

    I guess the way to proceed is to implement a shared Album and set it on the Public website.  It doesn't seem to be an option in the Photos app or site generated, to set the resolution of the images related to.  Any suggestions?

    Yes.  It is the only way to share image files.

    The resolution is automatically set. iCloud Photo Sharing FAQ - Apple Support

    iCloud, photo sharing supports most of the formats RAW, TIFF, PNG, and JPEG photo. Once shared, pictures taken with your standard devices, reflex, or iOS devices will be up to 2048 pixels on the long edge. Panoramic photos can be up to 5400 pixels wide.

    Also: If you are going to edit the original photo, the shared up-to-date automatically version?  In my quick test convert the picture black white & in my pictures library does not change appearance of the image in the shared Album.

    No, you need to simply share the edited again version and remove the old version of the shared album.

    Sounds strange because it suggests Apple organize two versions of the image - one for me and one for sharing.  Surely, who double their storage needs?

    Shared albums use a different part of your library to iCloud iCloud. The storage of shared photos does not count against your iCloud subscription, but it is limited, see: iCloud: My Photo Stream and iCloud Photo Sharing limit

  • Invoke the hand image + text

    What you set the mimetype when you want to share an image, but also have a text to go with the image. Keeping to "image/jpeg" and just help you add on a text of the query attribute?

    query {
                mimeType: "image/jpeg"
                invokeActionId: "bb.action.SHARE"
                uri: _dirPaths.asset + "images/MissScarlett.png"
            }
    

    This has been asked several times before and it is not possible.

    Previous discussions...

    http://supportforums.BlackBerry.com/T5/native-development/how-to-share-image-and-text-to-Facebook-an...

    http://supportforums.BlackBerry.com/T5/native-development/share-text-and-photo-for-the-same-invocati...

  • How to share the text on BBM group

    Hi I want to share text on the BBM group. How to do this?

    If during polls BBM (specific contact), I use:

    InvokeActionItem {
                title: "Share Text Over BBM"
                query {
                    mimeType: "text/plain"
                    invokeTargetId: "sys.bbm.sharehandler"
                    invokeActionId: "bb.action.SHARE"
                    data: "This is some text to share."
                }
            }
    

    And it works, but how to share on BBM group?

    And is there a documentation on the complete list of possible value for:

    -InvokeTargetId

    -InvokeActionId

    -MIME type

    Thank you

    sys.bbgroups.sharehandler is the id of the target for the BBM groups.  Here are some examples on how to share text or an image with a group BBM.  The user will be asked to select the group to share with.

    InvokeActionItem {
        title: "Share Text Over BBM Group"
        query {
            mimeType: "text/plain"
            invokeTargetId: "sys.bbgroups.sharehandler"
            invokeActionId: "bb.action.SHARE"
            data: "This is some text to share in a group."
        }
    },
    InvokeActionItem {
        title: "Share Image Over BBM Group"
        query {
            invokeTargetId: "sys.bbgroups.sharehandler"
            invokeActionId: "bb.action.SHARE"
            uri: "file:///accounts/1000/shared/photos/avatar.png"
        }
    }
    
  • How to share a LR catalog between computers?

    Hello!

    I installed on an iMac and a MBP from LR.  Is it possible to download my pictures and catalog (including amendments) on a cloud to access it from two computers?

    Thank you!!

    No, this is not possible. Lightroom requires the catalog to exist on a hard drive (internal or external) that is directly connected to the computer running Lightroom. The best way to share images between computers would be to have the catalog and images on an external hard drive, they can be moved between computers.

  • image is not listen to extracts

    I have a record OEBPS containing a folder of IMAGES created when I exported a .epub file a document in InDesign CS4.  (1) added to the IMAGE file above and (2) after opening the .xhtml file in the folder of the OEBPS using Dreamweaver, I need to display the above JPEG using the IMG tag image a .jpeg (directly from Photoshop) file.  However, using Dreamweaver < insert > < share > < image > menu does not display the .jpeg file.  Indeed, by using these menus the .jpeg file does whenever I place it in my c: directory, although of course the file displays as a fingerprint digital Windows and of course the Photoshop application that it has created.  Any ideas?

    When you have set your site you must have named a folder that will house all your images, it is there?  In addition, it is not recommended to name with plugs records, it's easier to create a path problem.

    Gary

  • Remove point default action of webview on long press

    Hi all

    I use WebView to view images in ListView. In the present, I use multselect do some action on LongPress on a particular image (WebView). But it shows webView point default action save, share and select other.

    And by clicking on select more, show my own point action.

    If I want to delete the action item default who are appearing for the first time, means that when I use longpress it show that my own actionitem.

    Please suggest any suggestion for this.

    Thanks in advance.

    Use on your WebView code below...

    WebView {}
    touchPropagationMode:TouchPropagationMode.None
    }

  • Unbound invocation open the target application selection worksheet.

    Hello

    I'm looking to create an invocation to share a link, but also a picture. I want to open a worksheet that contains apps to draw in order to share an item.

    Q_INVOKABLE void DataItemModel::shareImageUrl() const
    {
     bb::system::InvokeManager manager;
     bb::system::InvokeRequest request;
     request.setAction("bb.action.SHARE");
     request.setMimeType("text/plain");
     request.setData( this->getShareUrl().toUtf8() );
     manager.invoke(request);
    }
    
    Q_INVOKABLE void DataItemModel::shareImage() const
    {
        QString dir = QDir::tempPath() + "/image.jpeg";
        QFile file(dir);        // Saving the image to the file system because the invocation requires it. My images are    downloaded and kept in memory only
        if (file.open(QIODevice::WriteOnly))
        {
            file.write(m_image->getRawImageData());
        }
    
        bb::system::InvokeManager manager;
        bb::system::InvokeRequest request;
    
        request.setAction("bb.action.SHARE");
        request.setMimeType("image/jpeg");
        request.setUri("file://" + dir);
    
        manager.invoke(request);
    }
    

    Here's how I call from QML

                  //Inside a ListView...
                 listItemComponents: [
                     ListItemComponent {
                         type: "item"
                         DataItem {
                             contextActions: [
                                 ActionSet {
                                     ActionItem {
                                         title: qsTr("Share image url")
                                         onTriggered: {
                                             ListItemData.shareImageUrl();
                                         }
                                     }
                                     ActionItem {
                                         title: qsTr("Share image")
                                         onTriggered: {
                                             ListItemData.shareImage();
                                         }
                                     }
                                 }
                           ]
                     ]
    

    In both cases, it only starts the BBM application.

    Since it is a unrelated call, I would expect sheet of selection of the app to show where I could choose NFC Bluetooth, messaging, Facebook, etc. and the plethora of other applications that support sharing.

    To aggravate something like it for a sharing URL works from QML (I wasn't able to share an Image this way via QML however). He opened a sheet with a list of applications in the choice. It is totally confusing, because it seems to be the exact thing I've done in C++.

                                   InvokeActionItem {
                                        query {
                                            mimeType: "text/plain"
                                            invokeActionId: "bb.action.SHARE"
                                        }
                                        onTriggered: {
                                            data = ListItemData.shareUrl
                                        }
                                    }
    

    How would open the worksheet selection app using the framework of the call?

    I had this problem as well a couple of weeks and solved it. When you call and independent, the system will select a logon request. You is better to use a call related, but do not specify a target.

    QString path = QDir::current().absoluteFilePath("shared/photos/avatar.jpg");
    m_pInvocation = Invocation::create(InvokeQuery::create().parent(this).mimeType("image/png").uri(QUrl::fromLocalFile(path)));
    
    m_pInvocation.trigger("bb.action.SHARE");
    

Maybe you are looking for

  • SP4600 - hardware failure message

    Hi, (sorry, but my English is not good:-D)) I bought an old SP4600 (type SP460E-038LR-FR) with formatted HARD drive (so less potential drivers and software utilities). For the first 1/2 in. I m of HDD installed WinXP Home, on the second space 1/2 I m

  • Why reading Apple TV 4 is so agitated?

    I have 5 Apple TV and had no problem with any of them. 2-generation devices are 1 and 3 of them are small black gen units 3. I just bought a new gen 4 and trendy to replace one of the units gen 3. Setup went great. Connected by ethernet to an airport

  • Record the new laptop, no Confirmation email not sent? Help please!

    Hey all,. So, I got my new laptop computer and finally registered online to benefit from the guarantee. Everything went well and my account is performed and recorded. However, I've been waiting for about 2 hours now for an email confirmation just to

  • Calendar for the acquisition of data on the USB-6212

    I am putting together a sound teaching laboratory.  The basic idea is to send a pulse signal that powers a speaker, and then the acoustic signal travels down a waveguide where it is measured with a microphone and sent to a data acquisition.  One of t

  • HP Pavilion G60-458DX - Suggestions for the wireless card must be upgraded to 802.11n

    Nice day! I hope that all have a nice time. I have a HP Pavilion G60-458DX running Vista. I want to upgrade the wireless card/adapter to support 802.11n.  I would appreciate suggestions compatible. Thank you and enjoy all! John B.