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");

Tags: BlackBerry Developers

Similar Questions

  • When you try to install my new Embird program I get the message "this link must be opened with an application, select application. What does that mean?

    Help, I hope that I've not messed up, too bad!

    Help, I have a small embroidery business and have used a program called Embird.  Yesterday, I downloaded an upgrade for this program. It said to uninstall the old program before installing the new, so I did.  Now when I try to install the new one it says this link must be opened with an application, select application.  I have no idea what it means that someone can help me?  I tried to restore the computer to a date prior to just start all over hoping he would restore the old Embird, it says that the file may be damaged and will not work.

    If you were able to 'merge', you have unzipped the file somehow.  What was all the messages when you did the merger?

    Follow these steps:

    1 information about the particular file in question

    Right-click on the downloaded file, and select Properties.  What does say for 'File Type' and what is the 3-letter file extension (after the point)?

    If there is no file extension, find the file using Windows Explorer, and then click Tools > Folder Options > view.  Uncheck "Hide extensions for known file types" and click OK.  Now, look at the file again for the file extension.

    2. test of exe files

    Click Start > run, then type notepad in the "open" box, then click OK
    Didn't open a Notepad window?  If not, what error message do you have?

    Click Start > run, and then type the following in the "Open" box and click OK
    %SystemRoot%\system32\
    Find notepad.exe (or just Notepad if file extensions are not displayed), and then double-click it.  What is going on?

  • In Firefox does not open the submenu "Applications".

    I want to install the Firefox open with utorrent magnet links. I choose in the menu "tools-options-applications" and unresponsive. Will not open the menu "applications" to make adjustments. I have uninstalled and installed the new Firefox but the problem remains.

    nvsafe said

    I want to install the Firefox open with utorrent magnet links. I choose in the menu "tools-options-applications" and unresponsive. Will not open the menu "applications" to make adjustments. I have uninstalled and installed the new Firefox but the problem remains.

    Since no one answered after several days and hours of trial and error, I finally found what was and I didn't have access to "applications".

  • iPhone cuts read the mail when you open the mail application and pushing new messages

    Everytime I open the mail application on my iPhone 6 (9.2.1) all my mail previously reading disappears as soon as it pushes new messages.

    I found no adjustment that deals already read the mail on my iphone.

    Any ideas? And no it's not because I'm opening mail on the server's desktop in outlook that I rarely use more except as archive. I usually open mail on my iPhone first.

    Please confirm that you are in the mailbox of all mailboxes and not the mailbox unread. To do this, up on the back of boxes button at the letters on the top.

  • Try to open the mail application crashes internet explorer on Windows 8

    I have windows 8 on my computer, when I try to open the top of page the mail application, it says that if I want to download hotmail, I click Yes and the computer says stop internet Explorer running, close the program, and we let you know if there is a solution and nothing happens.

    Hi Tomas.

    Thanks for posting your concern here at the Microsoft Community forum. I would be grateful if you could answer the following questions:

    1. You use software like Windows mail client live mail?

    2. Remember to make changes on the computer before the show?

    3. What is the exact error / popup you get when you open the mail application?

    If you cannot open Internet Explorer or if it opens briefly and then closes, the problem may be caused by lack of memory, or corrupted or missing system files. Reboot your PC to erase the memory and then open Internet Explorer by itself.

    Method 1: follow the steps in troubleshooting this article and check if that helps:

    What to do if Internet Explorer does not work

    http://Windows.Microsoft.com/en-us/Internet-Explorer/IE-crashes-stops-working#IE=IE-10

    Disclaimer reset Internet explorer:

    WARNING: Reset Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings. Reset Internet Explorer is not reversible, and all the previous settings are lost after reset.

    If the problem persists, proceed to the next method.

    Method 2: Run the Troubleshooter of Apps. This tool can automatically identify and fix problems with the applications.

    Note: This utility automatically corrects some problems that may prevent your running applications, including the suboptimal screen resolution and security or incorrect account settings.

    Please consult the following link for troubleshooting if the troubleshooter does not help:
    http://Windows.Microsoft.com/en-us/Windows-8/what-troubleshoot-problems-app

    I hope this helps. If you need help with Windows, let us know and will be happy to help you.

  • EPMFDM-140301: cannot retrieve members. The target is not available or you do not have permissions to access the target application

    Dear friends,

    I have this error when clicking on the value target in the loading map.

    EPMFDM-140301: cannot retrieve members. The target is not available or you do not have permissions to access the target application.

    But my HFM application is running and I can show members in the application of HFM. Through the mapping of FDM, I'm not able to view the list of members in target value.

    Please give me the perfect solution for this.

    Thanks in advance

    Concerning

    Satheesh.S

    Thanks for your quick response

    Again added my application target, include membership lists.

    Concerning

    SS

  • Not able to open the HFM Application

    Hi all

    Hyperion Version - 11.1.2.3

    I did the copy of the application of HFM of QA Dev environment with HFM copy utility and the copy of the application is completed successfully. But I get the error message below when I tried to open the HFM application through the workspace. I tried to open after the restart of the services. But getting same error message.

    Please could you suggest any solution.

    Warning.PNG

    Err.PNG

    Thank you

    Michel K

    Hi Christophe,

    This could be a problem with your configuration, please try to run EMP configuration to configure Web server and check the status of the issue.

    Kind regards

    Madhu.

  • El Capitan Cant open the Adobe Application Manager

    As I turn my mac to El Capitan, I can't open the Adobe Application Manager... Therefore, I can not run the new update of my programs! This problem is related to? Can someone help me with this question?

    So please try to uninstall the creative Application with this cloud and see if it helps: uninstall the Adobe Creative Cloud desktop application

    then install: FAQ: How can I download and install the Adobe Creative Cloud Desktop App?

  • I just bought the 9.99 per month plan, and when I try to open the Photoshop application it asks me to buy new... Why would he ask me this?

    I just bought the 9.99 per month plan, and when I try to open the Photoshop application it asks me to buy new... Why would he ask me this?

    Make sure that you have signed with correct email address

    Sign in, sign out | Creative office cloud app

    If they are correct, then check that your hosts file entries once

    Log, activation, or connection errors. CS5.5 and later versions

  • Change the target application in FDMEE

    Hello

    I currently have HFM1 as my application target in FDMEE. Now, I need to change for HFM2. I registered in FDMEE HFM2. But not able to find where to change application target to HFM2 to start loading data to the new application. Any suggestions...

    Thanks in advance

    Hello

    FDMEE will provide the ability to select the application target while creating the import format... Assign this import format to the new location, you create and target Application will automatically fill...
    So, if you want the same 6 locations / import formats to point to HFM2, then you must create the objects to new (first import format) then location and other objects.

    Please let me know if it helps.

    Thank you

    HP

  • Metro Apps fail when you open the file to select/Save Chooser a file or folder - 1026, event ID 1000

    For all Windows 8 Metro Apps that have the ability to open a file or save a file (via the file picker), File Picker screen flashes and then disappears and the application crashes or or the user is not present an interface to select or save a file.

    The file selector used to work, but has not worked for about 2 months now.

    Check the Windows Application logs in case the viewer the following two errors always appear together when the file picker does not work (the example below error occurred while using an application called Sticky Notes):

    Source: .NET Runtime
    Event ID: 1026
    Application: Sticky Notes 8. exe
    Version of the Framework: v4.0.30319
    Description: The process was completed due to an unhandled exception.
    Exception details: System.ArgumentException
    Battery:
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw)
    System.Threading.WinRTSynchronizationContext + Invoker. b__0 (System.Object)
    at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object)
    at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem)
    at System.Threading.ThreadPoolWorkQueue.Dispatch)
    at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback)

    Source: Application error
    Event ID: 1000
    Name of the failing application: 8.exe Sticky Notes, version: 1.1.0.0, time stamp: 0x51ceae1a
    Name of the failed module: KERNELBASE.dll, version: 6.2.9200.16451, time stamp: 0 x 50988950
    Exception code: 0xe0434352
    Offset: 0x00014b32
    ID of the process failed: 0x1d0
    Start time of application vulnerabilities: 0x01ce87269da8f915
    The failing application path: C:\Program Files\WindowsApps\8251MarcoRinaldi.NoteTiles_3.4.0.0_neutral__9rvmmrcs6zgr6\Sticky Notes 8. exe
    Path of the failing module: C:\windows\SYSTEM32\KERNELBASE.dll
    Report ID: 7a632960-f92a-11e2-bea0-68942348047e
    Failed package name: 8251MarcoRinaldi.NoteTiles_3.4.0.0_neutral__9rvmmrcs6zgr6
    On a package of faults application ID: App

    Any idea on what could have caused this and how to fix it?

    System Restore creates a restore point "Undo" which allows you to cancel any act performed by the system restore.  In other words you can duck in time and if you don't like it you can return to the present.

    System Restore is a tool of recovery in the short term.  Dating two months in time isn't what it is so that a lot of work such as updates and settings not replaced and should be repeated.  She will play with happiness this task however.

    How to repair the operating system and how to restore the configuration of the operating system to an earlier point in time in Windows Vista (7 or 8).
    http://support.Microsoft.com/kb/936212/#appliesTo

    See, control Panel\All Control Panel Items\Recovery\ Open System Restore

    Is another software that you are running, in particular security at the origin of the problem software?

    How to perform a clean boot for a problem in Windows Vista, Windows 7 or Windows 8
    http://support.Microsoft.com/default.aspx/KB/929135

    You can even try your Safe Mode network management applications (the results can be a little Flaky).

    How to start Windows 8 in Mode safe
    http://www.bleepingcomputer.com/tutorials/start-Windows-8-in-safe-mode/

    This example can be worth a try, he runs the built-in administrator to check your Apps.

    This EXAMPLE (ONLY) may or may not work for you with your program, it uses the built-in Administrator account to perform the update?

    "It seems that the"Run as Administrator"command gives you administrative privileges only, and they are not enough to install Java (and OpenOffice, by association). To work around this problem, you must actually connect to the built-in administrator.   Open a command prompt (Admin) with admin rights by using the Windows key + X then select this option.   At the prompt, type:

    NET user administrator / Active: Yes

    Then disconnect from your regular account and folder administrator integrated, where you might be able to install the update.  When you are finished, open a session to your regular account and, for security reasons, disable the built-in using administrator account:

    «net user administrator / active: No.»

    Account administrator integrated - turn on or off in Windows 8
    http://www.eightforums.com/tutorials/9650-built-administrator-account-enable-disable-Windows-8-a.html

    When a system gets so mucked up it's often best to restart once again from the beginning.

  • Disable the button or to open the camera application

    Is there anyway to disable the feature that allows the camera to open by pressing the button or on the side of my droid?  I have a dashboard mounting that I use to keep my phone while driving, and when I place the phone in, the brackets that hold it in place press this button and open the camera each time.  It's really annoying!  Suggestions?

    There is an application called "Shortcut button" which will give you the results you want.  An once installed open the app and tap "Select application" under the camera on a long button and then select "do nothing".  You can also set to open a different application if you wish, but apparently you want do nothing right.  I hope this helps.

  • Trying to download ACR 9 Raw, had error Code U44M1I210. But now, I can't even open the Adobe Application Manager to start any download.

    Hi, error Code U44M1I210 mean? I try to download Adobe Camera Raw 9 and got this error message.

    Photoshop Camera Raw 9.0 (CC)

    There was an error of installation of this update. Quit and try again later. Error code: U44M1I210

    Press Windows button (located between Ctrl and Alt buttons) with the key R together at once, you will get a command window.

    Type below command and press the enter"" key.

    AppData

    Then go to the Local > Adobe > AAMUpdater.

    Open the AAMUpdater folder and rename Old - 1.0 1.0 file.

    Then launch Photoshop application and click on the Help menu and select updates.

    Always the same question?

    Try to install the update manually:

    http://swupdl.Adobe.com/updates/OOBE/aam20/win/PhotoshopCameraRaw8-8.0/9.0.592/Setup.zip

    Note: If you get the access denied error.

    Just click on the link below and the open Photoshop Elements download page, just keep it open and click on the links:

    https://helpx.Adobe.com/Photoshop-elements/KB/Photoshop-elements-10-11-downloads.html

  • Suddenly a double click on a PDF document opens the Acrobat application, but the document does not load.

    Until today, I had no problem opening a PDF document that I've saved by double-clicking it. Now when I do that, my Acrobat application opens, but the PDF document does not work. I need to use the file / open to select the document that I want to see, or I need to the mouse click on the PDF to the right and choose 'open with '. I had this once before and I had help to solve them, but I use Acrobat 7 Professional and since it is not supported, I can't help when I call Support.

    Sounds like a Windows problem. Try right-clicking and select ALWAYS open with feature. Who is supposed to fix the link. If this does not work, open the type of file under TOOLS menu > Folder Options (display XP, can be different in VISTA). If you select advanced as PDF, you get a link under the open > modify something like "c:\adobeapp\acrobat 5.0\Acrobat\Acrobat.exe" '%1 '. The comment you make looks like %1 or quotes are missing. Bill

  • MAC - impossible to find "Pictures folder" / Iphoto photo library and open the Iphoto Application at all

    Hi all

    I have Apple devices for a few years now, but I still find it difficult to understand the system. I want to put an end to that, so I finally registered.

    I try to look at the tutorials and read the forums, but I can't find concrete answers to my situation.

    First of all, in my application of Photos of my MacBook, I remove hundreds of photos and videos, then I go to recently deleted screen and I delete them all permanently.

    However my disk space is the same before under 'Storage' summary when I check "to about this Mac". I restarted the Mac and waited for days, the space does not release upward.

    Then I read in a forum and found the following answer:

    Your photos has not deleted because they still exist in iPhoto or Aperture, whatever you use. Photos saves disk space by creating links to the already existing files in iPhoto/Aperture, rather than duplicate. This means that if you want to delete a file, you must make sure that it has deleted all.

    If you can live without ever using iPhoto/Aperture once again, go to your Pictures folder and delete iPhoto Library and Aperture Library . In this way, the only copies of your photos will be those photos, and removing free space on your computer.


    The questions are the following:


    (1) after reading this, I decided to look it up in my pictures folder in the Finder to locate the iPhoto library, however it is not there on the left side, after reading the forums, I still cannot locate the iPhoto library anywhere.

    (2) in case I finally find my iPhoto library and delete it, are the images that I see now in the deleted Application Photos?

    (3) another curiosity, when I try to open IPHOTO, the following message appears:

    And then after trying the 'search App Store':

    I did not need to actually use my iPhoto or App Photos in particular, I do not yet fully understand the difference. I want to just my photos to be stored in ONE place and when I take hours to remove them permanently, get my rear space and do not learn, they still exist elsewhere (iPhoto library).

    Also please help me understand what am I supposed to do with the iPhoto application now that gives me these error messages.

    Thank you very much!

    (1) after reading this, I decided to look it up in my pictures folder in the Finder to locate the iPhoto library, however it is not there on the left side, after reading the forums, I still cannot locate the iPhoto library anywhere.

    The images folder must be manually added to the sidebar.

    Open the Finder preferences:

    • Click anywhere on the empty office to bring the Finder to the front, then go to the Finder menu in the main menu bar, open "Preferences".
      Click the tab of the sidebar and add all the items to the sidebar, you want to see.

    Now, open the images in the sidebar folder in the Finder.  Is your photo library in iPhoto there?

    Then drag it to an external drive to make a backup copy, then delete it and empty the trash.  Accidentally delete the photo library.

    (2) in case I finally find my iPhoto library and delete it, are the images that I see now in the deleted Application Photos?

    No, the photos in your library of Photos and the iPhoto library are separate files.  It was created by hard links.

    Hard links are new files, which use the same entry in the table. They store the contents in blocks of same on the disks, so the entries are not duplicated, but if you remove one of the linked files, the others will remain. The storage will be released, when the last linked file has been deleted.

    See this link: Six colors: the (hard) link between iPhoto and photo

Maybe you are looking for

  • Why do I receive an error message that I am not connected to the Internet when I try to update to 9.3

    I tried to update to IOS 9.2.1 9.3, but after the update is verified, he said I am not connected to the Internet, but I can get on safari without problem. I have tried rebooting and turning my victory-fi off and turn it back on. I even tried plugging

  • What sound driver to install?

    Hello Today, I uninstalled my audio driver through the Device Manager because it did not work properly. When I plugged in my headphones, sound still comes from my speakers. So I changed the default settings around. However, now every time its played

  • "Could not start the Dolby audio driver on windows 7.

    When I try to open Dolby Advanced audio, he says _-"failed to start the audio driver of Dolby. Please restart your computer or reinstall the driver if the problem persists "-that's what he tells me." now I have the driver but it does not appear in th

  • Satellite L300-21F - where can I find the serial number?

    The ink on the toshiba money serial No./model No. Panel at the back of my laptop rubbed off after only a week of use, when I bought the pc last year. I now have a problem with my touchpad registers is not the movement of finger-cursor or shots at nor

  • How to get drop shadow text in the windows version of LabVIEW 2009

    In the lower left corner of the JPG attached you can see that the 'dashboard' has a shadow.  I created by accident and want to use the shadow for the control names, but I can't understand how I did it. The only options of 'Style' in my menu drop-down