Invoke the map sharing in C++

Hello developers

I am trying to invoke the map sharing in C++, but it seems that it does not work as expected. The map tell you is this one...

The code I have so far is the following

    InvokeRequest request;
    request.setAction("bb.action.SHARE");
    request.setMimeType("text/plain");
    request.setData("Test for sharing");

    InvokeManager manager;
    manager.invoke(request);

When I run this code, it will invoke a card asking me to select a BBM group. It's like I have already chosen the BBM group option in the sharing card.

Does anyone have an idea why this goes wrong?

You request an independent appeal.  When you perform an independent application that allow you to choose the application to use the framework of the call.  To display the selector as you want, make a connected call but do not specify a target.  Here's how:

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

QObject::connect(m_pInvocation, SIGNAL(armed()), this, SLOT(onArmed()));

and then...

void BBMInvocation::onArmed()
{
    m_pInvocation->trigger("bb.action.SHARE");
}

Tags: BlackBerry Developers

Similar Questions

  • text using the map on the part of sharing

    Hello

    I want to share some text using the map on the part

    but I am facing a problem

    I have a list view, after loading data to the listview, I'm to that data to a property and then passing data for sharing

    but unable to see the data, but if the text of a label, I can see this text

     ListView {
    
                    id: myListView1
                    property string p_sharing : ""
                    dataModel: dataModel1
    
                    // Use a ListItemComponent to determine which property in the
                    // data model is displayed for each list item
                    listItemComponents: [
                        ListItemComponent {
                            id: listiemm
                            type: "item"
    
                            Container {
                            //    property real p_font_size: 10
                                id:mainlist
    
                                rightPadding: 20
                                leftPadding: 20
                                horizontalAlignment: HorizontalAlignment.Center
                                verticalAlignment: VerticalAlignment.Center
                                layout: StackLayout {
                                    orientation: LayoutOrientation.TopToBottom
    
                                }
    
                                 Label {
                                    id: title
                                    horizontalAlignment: HorizontalAlignment.Right
                                    verticalAlignment: VerticalAlignment.Top
                                   text: ListItemData.title
                                    multiline: true
                                    onTextChanged: {
                                        mainlist.ListItem.view.p_sharing =title.text
                                        console.log("news Title label --->"+ mainlist.ListItem.view.p_sharing)
                                    }
                                }
                                }
    

    outside the list, I have my share button and a label

      ImageButton {
    
                        id: btnshare1
                        onClicked: {
                            share1.trigger("bb.action.SHARE")
    
                        }
    
                        attachedObjects: [
                            Invocation {
                                id: share1
    
                                query {
    
                                    mimeType: "text/plain; charset=utf-8"
                                    invokeActionId: "bb.action.SHARE"
                                    data: ss1.encodeQString(myListView1.p_sharing) ;
                                 //   data:myListView1.p_sharing
                                }
    
                            }
    
                        ]
                        defaultImageSource: "asset:///images/list.png"
                        pressedImageSource: "asset:///images/list.png"
                        disabledImageSource: "asset:///images/list.png"
    
                    }
                    attachedObjects: [
    
                        WebImageView {
                            id: ss1
                        }
                    ]
    

    and here is the label

    Label {
                    id: lbl
                    text:"abc"+ myListView1.p_sharing
    
                    horizontalAlignment: HorizontalAlignment.Center
                }
    

    I can see the value of the property in the label, but you see is not the text in the map sharing

    any help?

    TheMarco has published a tutorial on how to make this a few months back

    https://forrst.com/posts/Adding_Social_Sharing_through_Invocation_to_your-FMZ

  • Invoke Blackberry Maps using the location document

    Greeting, developers...
    I use call blackberry maps in my application using document location...
    I put 3 rental, my location, Room A and room B
    example:





    but my problem is
    1. how the development of the cards to my location (the first location)
    2. how to make the maps zoom? I use lbs document as above, but there is no zoom at all in blackberry maps...

    Any solution?
    Thanx

    Visit this link for more details on the books and the location tags.

    http://docs.BlackBerry.com/en/developers/deliverables/17954/Invoking_BB_Maps_using_a_location_docume...

    But to my knowledge, I Don t think centeralized zoom is not possible in this method of calling cards.

    There are many ways by which you can invoke the card / use mapField in your application. You must choose the right pair that meets your needs.

  • Drive mapping shared with VPN access

    I'm the only person in our company (small) with a Mac and I work remotely. I consulted my company using Network Connect VPN successfully.

    I'm now trying to map the shared drive.

    Under "OK" > "Connect to Server" I entered the address of the server ("smb: / /...") (' etc.) because it has been given to me. When I click on connect I get an error "there was a problem connecting to the server '[server address]'. The server may not exist or it is not available at this time. Check the server name or IP address, check your network connection and then try again. »

    I tried a number of variations of the server address - none worked.

    In the Finder, under the heading "Shared Disks", all I can see is an empty folder "servers".

    When I'm on wifi office internal society, we were able to map the drive. But nothing has worked so far not remotely, remotely.

    Can anyone suggest a solution?

    I solved my problem. I needed to use the IP address of the server, not the full smb: / / URL etc.

  • Invoke the E-mail with attachment

    Hi guys,.

    IM I invoke the email with a built-in attachment application.
    I read to analyze the data in the JSON Format to the InvokationRequest, but I'm not sure how exactly to proceed.

    Here's what I have so far

    InvokeManager invokeManager;
    InvokeRequest request;
    
    request.setTarget("sys.pim.uib.email.hybridcomposer");
    request.setAction("bb.action.COMPOSE");
    request.setMimeType("message/rfc822");
    
    QVariantMap mail;
    
    mail.insert("to", QUrl("[email protected]"));
    
    request.setMetadata(mail);
    
    InvokeTargetReply *reply = invokeManager.invoke(request);
    

    AFAIK, this should add the address [email protected] mailto-field, but it's not.

    Does anyone know what im doing wrong or what is missing.

    THX

    Smolof

    Sorry for the delay. Here is how I got it working this morning.

    void InvokeEmail::sendEmail() {
        InvokeRequest request;
        request.setAction("bb.action.COMPOSE");
        request.setMimeType("message/rfc822");
        QVariantMap data;
        data["to"] = (QVariantList() << "[email protected]");
        data["subject"] = "This is a subject";
    
        data["body"] = "Hello there, things are great!";
        QString logpath = "/accounts/1000/shared/documents/test.pdf";
        QString logpathEncoded = QString(QUrl(logpath).toEncoded());
        qDebug() << "## LOG PATH: " + logpathEncoded;
        data["attachment"] = (QVariantList() << logpathEncoded);
        QVariantMap moreData;
        moreData["data"] = data;
        bool ok;
        request.setData(bb::PpsObject::encode(moreData, &ok));
    
        m_invokeManager->invoke(request);
    }
    

     

  • Invoking the weather app

    Hello

    In an application that I'm developing, I use a MapView with specific long and lat shows a location on a map, but I was wondering if there is something like MapView to the time where I could say indicate a city or a country and then would display the current weather for this area, or would I need to invoke the weather BlackBerry App directly?

    Any help would be greatly appreciated

    The BBC or the weather channel web sites are used in many applications.

    http://www.Wunderground.com/weather/API/?ref=TWC

  • Two questions on MapField (GPS permissions) and the map display

    Hello world

    I have two questions about the use of the Mapfield (for OS 5.0):

    First of all, it is possible to invoke the Permission of GPS is fast at the start of the application rather than the first time, you open the card and use the GPS?

    Second, I use a MapField in my application, and the map that appears on the device is only to show a green background with diagonal black lines and circles white - as if there were no card information to show. I tried to load many different places, and I get the same result. On the Simulator, I get the most actual plan information.  Does anyone know why this might be happening?

    Thank you!

    regarding your first question:

    use an applicationpermissionsrequest for that object.

  • Search does not work on the mapped network drive

    Separated from this thread.

    Same problem: search does not work on the mapped network drive, but works if the shared folder is accessible via the network as a UNC path:
    Mapping as UNC path after a server reported results navigation:

    The impression that it is something in the drive mapping in Win 8 (running 8.1). Problem does not appear in Win 7

    Hi Simon,.

    Please contact Microsoft Community. I understand that you have a problem with research on mapped network drives.

    Advanced networking issues are supported in the TechNet Forums. I suggest you send the request in TechNet Forums to get help.
    http://social.technet.Microsoft.com/forums/Windows/en-us/home?Forum=w8itpronetworking

    Hope this information helps.

  • How to activate the Clipboard sharing for shared virtual computers?

    Hi guys.

    Important note: this is VMWare Workstation.

    When I share a virtual machine in order to other guys in the network can control it, I lose the following capabilities:

    * the Clipboard sharing via VMWare tools

    * file drag and drop via VMWare tools

    * possibility of mounting isos of MY system from LOCAL FILES on the virtual computer DVD drives

    Someone knows how to re - activate these features?

    Many thanks in advance.

    You obviously not bothered to read the documentation! Here are some excerpts, referring to shared virtual machines...

    NOTE You cannot change to a shared virtual machine or remote model mode.

    Configure updates of specific for a Virtual Machine VMware tools...

    Use the VMware Tools default update behavior. The default behavior is defined in the preferences of the workstation.

    NOTE You cannot configure this option for a shared virtual machine or remotely.

    NOTE You can enable or disable drag - move to a shared virtual machine or remotely.

    NOTE You cannot enable or disable copy and paste functionality to a shared virtual machine or remotely.

    NOTE You cannot enable a shared folder to a shared virtual machine or remotely.

    NOTE You cannot map a virtual hard disk to a shared virtual machine or remote.

    NOTE You cannot add a printer to a shared virtual machine or remotely.

    NOTE You cannot configure a virtual machine shared or remote to display all USB input devices.

    Take or return to a snapshot at Power Off

    Take a new snapshot

    NOTE You cannot configure this option for a shared virtual machine or remotely.

    Configure power and control power settings Options

    3. Select a power option.

    NOTE You cannot configure these options for a shared virtual computer or remotely.

    6. Select the setting for the start control.

    NOTE You cannot configure startup for a shared virtual machine or remote control settings.

    NOTE You cannot configure a shared or remote virtual machine as a VNC server.

    NOTE use Workstation 10, you can change the hardware compatibility of a shared virtual computer or remotely. However, you cannot in low grade a virtual machine created previously.

    NOTE This command is not available for shared virtual computers, or remotely.

    Clean a VHD on Windows hosts

    Unlike the command to defragment and the shrink command provided by VMware Tools, clean it from the order of discs requires no any additional disk space on the host computer. Clean the disks command works directly on the files of virtual disk (hard).

    NOTE This command is not available for shared virtual computers, or remotely.

    Add a USB controller to a virtual machine

    NOTE shared and remote virtual machines are created without a default USB controller. You can add a USB controller manually when you have finished creating a shared virtual machine or remotely.

    4. set the USB connection settings.

    NOTE You can not usually set up USB connection to a shared virtual machine or remote settings.

    NOTE You cannot add a physical drive to a shared virtual machine or remotely.

    NOTE You cannot add a generic SCSI device to a shared virtual machine or remotely.

    NOTE You cannot configure the virtual keyboard improved to a shared virtual machine or remote setting.

    NOTE You cannot configure advanced settings of the virtual adapter to a shared or remote virtual machine.

  • Default connection to the Oracle shared server

    We are currently trying to use the server shared on an Oracle 11.1.0.7 server standard edition.

    We have no problem with the settings or performance. We can connect with a dedicated or shared connection.

    Our problem or issue is with tnsnames.ora.

    DRAMA =
    (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = X.X.X.X)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SID = orcl)
    )
    )

    We don't identify if this connection is shared or dedicated. Default login is dedicated and we want to force users connect to a shared server connection.
    It would be really useful to avoid having to go customer by customer at the remote sites. We don't have any tool for centralized management to modify the file (and not on remote sites).

    We could, of course, apply to distribute a new file, but given that each client is unique, it could be risky.

    Try to use SERVICE_NAME instead of SID in tnsnames.ora and make sure that this service is mapped to a dispatcher in init of the database. file.
    Example with the 11.2.0.1:

    1. setting of DISPATCHERS

    SQL> show parameter dispatchers
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    dispatchers                          string      (PROTOCOL=TCP) (SERVICE=DB112XDB)
    max_dispatchers                      integer
    

    2 TNSNAMES. ORA:

    $cat tnsnames.ora
    DB112 =
     (DESCRIPTION =
       (ADDRESS_LIST =
         (ADDRESS = (PROTOCOL = TCP)(HOST = lx01.localdomain)(PORT = 1521))
       )
     (CONNECT_DATA =
       (SERVICE_NAME = DB112XDB)
     )
    )
    

    3. test with SQL * more:

     sqlplus  system/xxx@DB112 @tss
    
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Feb 15 21:37:35 2010
    
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> select username, program, server, service_name
      2  from v$session
      3  where server<> 'DEDICATED';
    
    USERNAME                       PROGRAM
    ------------------------------ ------------------------------------------------
    SERVER    SERVICE_NAME
    --------- ----------------------------------------------------------------
    SYSTEM                         [email protected] (TNS V1-V3)
    SHARED    DB112XDB
    
  • Look at the maps app will not stop

    When I look for direction in the maps on the watch application, it will not stop after that. I looked for directions to the airport, and then it does not cancel and kept taking me to the airport. I have ensured the application Maps on my phone was not working and he cancelled it but always watch will not stop.

    I tried it yesterday and now today the watch gives me directions to the airport.

    I tried to remove it from the docking, restarted my watch. Watch app from the phone Checked, but nothing works.

    Hello

    To stop your watch directions: open the Maps app on your watch > firmly press the display > press on for policy decisions.

  • my daughter has every music we want to pass the family sharing the will she lose her purchases

    my daughter has every music we want to pass the family sharing the will she lose her purchases

    Mvangordon,

    She will be able to keep all purchases on his account.  See this document:

    Family shares - Apple Support

    Note that "all eligible songs, albums, movies, TV shows, books and applications already bought by members of the family are immediately available for everyone in the family."

    In the future if she leaves the group sharing of the family, she is no longer able to share purchases, but she will always keep its own.

  • I have a chase bank credit card that I have good ranking and what number do I call to talk to I tunes because he says, use a different card, it's the map I was buy everything what I tunes. Is it because I have challenged their load m

    I have a chase bank credit card that I have good ranking and what number do I call to talk to I tunes because he says, use a different card, it's the map I was buy everything what I tunes. Is it because I thought them charge me twi

    Can I have it please the number on I tunes support whether please or have them call me at * Leonardo B *.

    < personal information under the direction of the host >

  • Update the maps.

    Hey, I have an Iphone 6 s(16GB) in which the maps does not show me the nerby location; For example. (If I find CCD in my area it will show the CCD in the my location (in India) otherwise, it will show the CCD everywhere in the world) I thought it could get better in the next software update, but not had until now. Apple needs to improve maps. Otherwise, please send me the solution for the problem.

    Software I use: I am currently using IOS 9.3.4.

    Aditya.Bobde wrote:

    Hey, I have an Iphone 6 s(16GB) in which the maps does not show me the nerby location; For example. (If I find CCD in my area it will show the CCD in the my location (in India) otherwise, it will show the CCD everywhere in the world) I thought it could get better in the next software update, but not had until now. Apple needs to improve maps. Otherwise, please send me the solution for the problem.

    Software I use: I am currently using IOS 9.3.4.

    http://www.Apple.com/feedback/

  • IPhone 4 ios 7 can not get on the family sharing for itunes

    Hi, my son got a new second hand phone. try to get him on the family sharing so he can listen to the music, but whenever he's trying to do a song, his view as a purchase. his name is included, but it has version 7. We have updated the phone on itunes and its not updated it to ios8 one had success with this?

    Thank you

    Hello evechoccy!

    Thanks for reaching out on the share of the family option does not arise with the iPhone of your son 4.

    The reason for this is the iPhone 4 can only go to iOS 7 and sharing of the family did not become an option until iOS 8 and later versions. You can see the family sharing requirements here: family shares - Apple Support

    Kind regards.

Maybe you are looking for

  • What happened to the 'Identity Switch' feature under the file tab?

    Under the old version, I was able to change his identity (I must have for this download add on) so that I could open both my purchase and sale of the IDS at the same time on eBay. They have done away with this feature?

  • ProBook 455: what models can be upgraded to windows 10

    Hello I'm probably not the first person to ask this question, but I'll try to find a link or somewhere a page that lists all compatible with Windows 10 laptop computers and HP computers desk?  I have a number of HP desktop computers and notebooks of

  • cDAQ-9181 + OR 9206: how to set the nominal range in LV

    Hello The specifications of the NI 9206 voltage module HAVE indicates that 4 (± 200 mV, ± 1 V, ± 5 V and ±10 V) programmable input ranges are available. The question is, how programmatically choose one of these ranges of in LabVIEW. I can't find a VI

  • PXI data transfer between OTN and FPGA

    Hello I have a DAQ card in my PXI and a FPGA 7813R map. The problem is that I send sample waaveforms of the data acquisition card to the FPGA card (which only has digital i/o) to launch my control on the FPGA. When I generate a sine wave of 50 Hz in

  • Best settings for the analysis of revenues

    I just bought a HP Officejet 6600 A-I-O. I was looking for a device scan my boxes of documents, so I can unclutter my home office. I would also like to analyze the revenue. I considered the famous 'neat Scanner", but I hesitated to the price tag of $