Share multiple photos via share framework

Hello

I'm trying to share multiple photos through the framework of the action, but the code below only allows me to create new tasks with them. How can I share multiple photos like the app native photo?

InvokeRequest invokeRequest;
invokeRequest.setAction("bb.action.SHARE");
invokeRequest.setUri("list://");
invokeRequest.setData(itemPathList.toUtf8());
invokeRequest.setMimeType("filelist/image");
invokeManager->invoke(invokeRequest);

One more suggestion...  Try to use bb::cascades:Invocation, which behaves more like the InvokeActionItem (making an independent invoke) that use InvokeRequest directly.

Here is an example:

void MyClass::someFunction() {
    . . .
    InvokeQuery *query = InvokeQuery::create()
        .mimeType("filelist/media")
        .uri("list://")
        .data(data);
    Invocation *invocation = Invocation::create(query);
    query->setParent(invocation);
    connect(invocation, SIGNAL(armed()), this, SLOT(onInvocationArmed()));
    connect(invocation, SIGNAL(finished()), invocation, SLOT(deleteLater()));
}

void MyClass::onInvocationArmed()
{
    Invocation *invocation = qobject_cast(sender());
    invocation->trigger("bb.action.SHARE");
}

Tags: BlackBerry Developers

Similar Questions

  • BlackBerry Q10 Q10 - cannot share photos via Whatsapp!

    Somehow I can't share photos via Whatsapp (locations for example work very well)!

    When I try, the screen goes black and I can just hit the Cancel button... Just reinstalled Whatsapp from scratch without success... very frustrating!

    Advice or similar experiences?

    Thank you!

    Solution found! Give access to Whatsapp-App to your photos, music, etc.

    Now it finally works!

  • How to export multiple photos into LR 5 within a custom framework?

    Hello, I photographed a photo booth for a dinner.

    I made a PNG image and I want to export each photo inside this framework that I did. (see below)

    How can I do this? I thought a script in Photoshop and export each individual photo with this script, but I couldn't make it work. Suggestions?

    20150221-CRU-WAD-photobooth.png

    LRMogrify2 plugin photographers- toolbox.com will give control of the canvas and watermark to achieve the desired result.  It may be easier to work with the text of the border and the watermark as separate items under export Mogrify.  (Mogrify is surprisingly powerful, so may take a little effort to become familiar with.)

  • Adding a photo via facebbok

    I try to add photos via Facebook, and all applications are grayed out.

    I use a macbook pro (15-inch, mid-2015 retina) OS X El capitan worm 10.11.5

    Anyone know why this is happening...

    Jcm1363 wrote:

    I try to add photos via Facebook, and all applications are grayed out.

    I use a macbook pro (15-inch, mid-2015 retina) OS X El capitan worm 10.11.5

    Anyone know why this is happening...

    Add photos via Facebook?  You say you want to share photos on Facebook?

     > System Preferences >Extensions> sharing > Facebook

  • Download iOS 10 update once for installation on multiple devices via iTunes?

    I think remember me that it was possible and it was the best way. When I Googled it I am surprised to find there is no recent information on this (last year, although there are responses from 2012). I think this means 'no', but have not found the answer either.

    Then, download iOS updated once for installation on multiple devices via iTunes? As many people have multiple iOS devices that's probably a good idea.

    Almost certainly not.

    Each version of the product Apple has its own download.

  • camera is empty and I'm not syncing photos via iTunes, but it shows still 19 GB of storage taken

    I got a lot of photos on my iPad so I deleted them on the rolls/photos of the camera. I'm not syncing photos via iTunes, but it always shows 19.4 GB of photos when I sync the iPad and also via Configuration-> storage on the iPad.

    Check the recently deleted Album.

  • Scanning multiple photos

    Hello, I'm scanning several photos and they are saved as a single page.  My old hp split in separate files as long as they were not paid.  I can't understand how to do this with this new all in one photosmart hp 6515.  I have the vista operating system.  I just support hp cat and he said to uninstall and reinstall the printer.   Someone, help me.

    Thank you, Shirley

    Hi grammy2012,

    Printers with lower and 14 driver versions have this feature.  With 20 versions or older printers are not pilots. If you have a new model, no doubt he has the version of the driver above 20 and the function is simply not in the software.

    This means the automatic cropping several photos.

    With 20 and older driver versions, it is possible to do this, but not automatically.

    1. place your multiple photos on the glass.

    2. scan in JPG

    3. Select the harvest in one of the photos.

    4. click on to add a page.

    5 harvest in the second photo.

    6. If you have more than two photos on the glass, perform steps 3 and 4 until all the photos are on a 'page '.

    7. click on save button and assign a name, the photos will be all saved in separate files.

  • Why the rejection of multiple photos doesn't work anymore when you change pictures?

    Why the rejection of multiple photos doesn't work anymore when you change pictures? Does anyone else have this problem? It works on my other Mac but just stop working on my computer laptop pro, I have the latest OS and it worked until a few weeks ago. Thanks for any help!

    Selection of several photos at once enter "9" to reject all still works them for me in Aperture 3.6 on El Capitan.

    Have you tested, if the problem occurs only in an Aperture library or libraries opening?

    Create a new Aperture library to test and see rejection, so it works.

    If it does not work in a new library either, I got trash Aperture preferences.

    In preferences file is now in the container folder in the user's library.

    Try this:

    • Leave the opening runs.
    • Then open your user library and delete the folder complete ~/Library/Containers/com.apple.Aperture/
    • and the ~/Library/Preferences/com.apple.Aperture.plist file

    Your user library can still be hidden. To reveal the hidden user library:

    • Bring the Finder to the front by clicking on the desktop or the Finder icon in the Dock.
    • Select your folder user/home (with the House icon in the side bar of the Finder)
    • With this window in the Finder in the front window, press the ⌘J key combination to bring up the display options.
    • In the view options panel allow you to "show the library folder. That will make your visible user library folder in your folder.
    • Open your folder, then the library folder, then the containers.
    • Move the entire folder ~/Library/Containers/com.apple.Aperture on your desktop. Move the entire folder, not just the content.
    • Delete ~/Library/Preferences/com.apple.Aperture.plist as well.

    Now, restart the Mac, start Aperture and try see your book.  If all goes well, delete the folder on the desktop.

  • Scanning multiple photos on a series of HP Deskjet 2540

    Recent HP AiO printers allows users to scan and save multiple photos using the scan software.

    Here's a video that shows you how to do it:

    https://goo.GL/qfQyf4

    So that this works, you need to install the HP software that comes with the printer using the CD or you can download a copy of the software of the printer to

    http://WWW8.HP.com/us/en/drivers.html

    Type in your printer model to download the software for your computer.

    The following printers have this automatic feature of "Crop":

    HP Deskjet 1010 series

    HP Deskjet series 1510

    HP Deskjet 2540 series

    HP Envy 4500

    HP Envy 5530

    HP Officejet 4630 series

    HP Officejet series, 2620

    HP Officejet Pro 8610/8620/8630 series

    Scanning multiple photos:

    HP Officejet Pro 8630

    https://goo.GL/ADYDmo

    For more tips scan, please see this post:

    http://h30434.www3.HP.com/T5/scanning-faxing-and-copying/using-your-HP-scan-software-scanning-Guide-...

    Click on the STAR of CONGRATULATIONS on the left, if it helped you somehow.

    Some good information here, thanks greenturtle!

  • Scanning multiple photos and save them in dependent files

    Have a new printer, a large Format HP Officejet 7500 a.

    ProductName; C9309A - SSN {removed privacy}.

    Installed on Windows 7 Pro and Mac OS X

    Question; Scanning multiple photos and save them in dependent files, as it used to be with the series HP4500. Possible or not? No msg error but boring...

    This is possible, plaurier, but you will need to select it in the printer for scanning software. When you are scanning from your computer, there should be a window that appears with information about the type of file you want to save as only as well as the details of the analysis.

    Here there should also be a button or a link for the "Advanced" options You can choose if you used to save the scans as a single file or multiple.

    Let me know if it helps!

  • Problems with sending photos via outlook express

    I'm used to be able to send pictures via outlook express, but recently have been do this error: your server unexpectedly terminated the connection. The possible causes for this include server, network problems, or a long period of inactivity issues. Account: pop.att.yahoo.com, server: outbound.att.net, Protocol: SMTP, Port: 465, secure (SSL): Yes, error number: ox800CCCOF. Is someone can you please help me to send my photos via outlook express again? Thank you

    Hello

    What version of the Windows operating system do you use?

    Perform the steps in the following links, and check, if that helps:

    Error messages when you send and receive in Outlook and Outlook Express

    http://support.Microsoft.com/kb/813514

    See also: error message: your server has unexpectedly terminated connection

    http://support.Microsoft.com/kb/278637

    I hope this helps.

  • To scan multiple photos on HP c309 series as individual files; the box for enable is grayed out.

    I use a HP Photosmart C309A all in one.  I use Windows 7. I have several photos to scan and want to sweep as individual files.  I did already several months without problem.  The box which should allow me to do so is not available to check.  It is grayed out.

    Anything to try would be appreciated.

    Hi @Mamusworld,

    Welcome to the HP Forums!

    I noticed that you want to scan multiple photos on your HP Photosmart c309 as individual files, but the box is grayed out. I'm happy to help you!

    It sounds as if there is a problem of driver/software with your printer software. I recommend the following:

    1. Uninstall the software. Uninstalling the printer software.
    2. Clean boot the computer. How to perform a boot in Windows.
    3. Re-install using the HP print and Scan Doctor.

    Hope this helps and have a great day!

  • How can I move multiple photos to a new folder I created without doing it one at a time?

    How can I move multiple photos in a new file instead of a folder a time? I've been clicking and dragging each photo in the folder of don't. I have to be a faster, more simple way and I can not find this way

    Post proposed by the facilitator for the appropriate forum placed

    First, select the photo and press Ctrl and the C key at the same time, when you press the fences to hit keys Ctrl and V photos simultaneously.

  • How to show multiple photos and remove unwanted Windows Media Center photos?

    Original title: Windows Medica Center - get photos

    I have updated from Vista to 7. I loaded hundreds of photos in the computer since then.

    However, I can see only one photo at a time. How can I view multiple photos at a time and how I delete unwanted photos?

    Thank you

    Hi jdhill93,

    You cannot view several pictures at the same time on a single screen on Windows Media Center.
    See See pictures and videos in Windows Media Center

    Step 1: Remove a photo from your computer
    a. on the Windows Media Center start screen, access images + videos and then click picture library.
    b. navigate to the image you want to delete, click on the image, click on remove and then click Yes.

    Note: Deleting files permanently removes files from your computer. Back up the files before deleting.

    See Edit pictures in Windows Media Center

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Not able to send multiple files via bluetooth

    I have had this problem since I bought my laptop. I am able to send only one file. In other words, when I right click on the file you want, there is a separate option "send to Bluetooth" allows me to transfer a single file to my phone or another laptop. But when I select several files and right-click on it and select ' send to--> Bluetooth device ", a window opens but it doesn't detect other bluetooth devices. I would also like to add that the drivers are updated and devices are in the range. The options "Send to Bluetooth" and "send to--> Bluetooth Device" are different. I'd be happy if someone gave me the solution.

    My laptop: HP Pavilion DV6 - 6006tu
    Operating system: Microsoft Windows 7 Home Premium

    Thank you.

    Hello

    Method 1:
    Try first to add and pair the device and then try to send files via Bluetooth. You can follow the below mentioned article that will give you information on add a Bluetooth device to your computer:
    http://Windows.Microsoft.com/en-us/Windows7/add-a-Bluetooth-enabled-device-to-your-computer
     
    Method 2:
    You can see the laptop manual to see the steps on how to send multiple files via Bluetooth or check Bluetooth section for the information you are looking for.
     
    Let us know if it helps!

Maybe you are looking for

  • Re: Portege 500 Sync and Fingerprint Software on Vista

    HI - have recently resolved the synchronization failure by removing the true Suite Access Manager (finger printing software). Vista invites you to reinstall the software when you restart, which I did download from the Toshiba... and we're back to the

  • Hard drive is not recognized in the BIOS - Equium A60

    Hi hope someone can help. I have a Toshiba Equium EA60-173 and the hard drive is not recognized in the BIOS. When I remove the hard drive and put it in another laptop it is detected fine. I also tried another hard drive in the Toshiba and that does n

  • Who can force an update of the firmware?

    Hi friends, Picked up a xprt replacement at the Sprint Store today (see my thread on LED solid), red and the firmware is 4.1.110. When I go to update the firmware of Motorola, camera says his day (he is obviously not). Sprint send this to my camera,

  • How can I get rid of Dingo offers pop ups?

    Most all retail sites when you view an element are pop ups advertising the same product from other dealers. Even on Amazon, I see comps at Walmart. Pop come from the so-called Dingo offers.I use AVG and Malwarebytes and Adblock and none of these appl

  • Merge two tables 2D?

    Hello I have a question about the merger of the two 2D arrays. I have a program that generates two tables different interms of binary digits (attached file) and I wanted to arrange them as below. The first generation of table: 1110 1101 1011 0111 Sec