Share link

Hi all

I want to share a link to appworld (link to my app) using Invocation. My code (QML) is:

Button {text: 'Share'}

onClicked: {}

invokeQuery.mimeType = "text/plain".
invokeQuery.data = "try this app: < a="" href="\" appworld://content/xxxxxxxx\""=""> my app."
                    
invokeQuery.updateQuery ();

}

...

attachedObjects:]

{Of invocation
ID: invokeShare
               
query: {InvokeQuery}
ID: invokeQuery
mimetype: "text/plain".
}
onArmed: {}
If (invokeQuery.data! = "") {}
Trigger ("BB.action.Share");
}
}
} }

But I get a clear text and I want that click of the user the link and be redirected to the appworld. How can I do?

the invocation of QML has always been difficult and usually does never work except if used with an action context item.

This can be done easily using c ++

ApplicationUI.cpp

#include 
#include 
    QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
    qml->setContextProperty("cpp", this);
void ApplicationUI::message()
{
    QString text = "Download Dev Mode for Free in BlackBerry World!  http://appworld.blackberry.com/webstore/content/35407898";

    InvokeQuery *query = InvokeQuery::create()
        .mimeType("text/plain")
        .data(text.toUtf8());
    Invocation *invocation = Invocation::create(query);
    query->setParent(invocation); // destroy query with invocation
    invocation->setParent(this); // app can be destroyed before onFinished() is called

    connect(invocation, SIGNAL(armed()), this, SLOT(onArmed()));
    connect(invocation, SIGNAL(finished()), this, SLOT(onFinished()));
}

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

void ApplicationUI::onFinished() {
    Invocation *invocation = qobject_cast(sender());
    invocation->deleteLater();
}

ApplicationUI.hpp

namespace bb
{
    namespace cascades
    {
        class Application;
        class Invocation;
    }
}
public:
        Q_INVOKABLE void message();

public slots:
    Q_INVOKABLE void onFinished();
    Q_INVOKABLE void onArmed();

QML

Button {
   onClicked: {
         cpp.message();
   }
}

I didn't belive it is necessary, but if you have problems try adding this to your .pro compilation

. Pro

LIBS += -lbbsystem

Tags: BlackBerry Developers

Similar Questions

  • Not able to share links!

    Hello.  I've been using story about 7 months now and it jjust occurred to me that I am not able to share links.  I put a few links to places to buy accessories and when I asked my colleagues if they had taken a quick glance and yet they had no idea what I was talking about!  Apparently you can't share links.  What is the point of putting them in the history then? That I could have just made a bookmark or put them in my favorites, if I didn't forget them!  History, this should be on your list of priority right now.

    CEOMW

    This problem will be solved when we allow you to start sharing projects in their entirety. From sharing now is based document and it is causing problems like the one you mention.

    -Anubhav

  • Backflip: Is it possible to share links to social networking sites from the browser?

    Hi all. I was playing with my Backflip and that most of the time (apart from some odd questions every now and again). I love how I can post updates from a single blow to all my social networks that I have linked to my Motoblur account. It is quite convenient. I did something similar on my computer browser for a while with the help of an add-on called Yoono. Although one thing I can make sure I did not quite understand yet how can I go on the sharing of links on all of my accounts of social network at the same time? Is it still possible to do so directly, or do I have to use the sharing links on individual pages or copy the link and put in an update? Yoono offers a unique button 'share' which will lead the URL I'm at, capture images of the page, I would add a little descriptive text and then send it to networks no matter what I choose in a single process. It saves time by not requiring no me click every button share for each network and add descriptions for everything. Just click once and it goes to all. In the same way that status updates the work of Motoblur. Given that social network accounts are already synchronized with our phones, I was hoping there would be something like that where I could share a link from the browser or RSS reader app and post the link to all my accounts in a single operation without welding. So are there currently such a thing, or what I have to use a workaround? Thank you!

    Download free browser dolphin of the market app. When using it just click the menu button and it gives options for sharing things on different sites.

  • Cannot share links or create groups

    I have not presented an option to share a file/folder as a link or using facebook.  The option is not visible at all.  I can also create a group using the Group menu on the left side of the site Web in SkyDrive.  When I try to create a group, I get an error saying that Windows Live Groups don't support family security accounts.  But I don't use all parental control.  I used in 2003-2004, but stopped using it several years ago.  I tried connecting on the family safety website to see if I can fix it myself and there is no indication that I never used family safety.  I could really use some help so I can use all the features of SkyDrive.

    Hello MicrosoftFan88,

    Please see the link below for updates on the issue. In addition, make the post on the link the only post to avoid confusion.
    Thank you.
  • Where the share link is creative cloud?

    Anyone know how to get the share creative cloud link without sending an email from the DC interface.?

    Don't find it anymore!

    Thank you

    It's under the "Public/private" switch

    HTH

    --

    Marijan (tomaxxi)

    http://tomaxxi.com

  • Can I share a link on iCloud drive for any kind of document?

    Can I share a link on iCloud drive for any kind of document?

    You can only share links to documents in iCloud drive iWork.

  • Share broken links

    I have problems to display pallets from a client sent me: they all lead to 404 pages.

    Here is an example:

    https://color.Adobe.com/library/89203462-be91-4CB4-bcfe-e3631198c672/theme/4949555b-A7DC-4 1fc-8797-6f98974d6939 /.

    We have all two Adobe ID, I have a license of the CC team. There is no way in the world that I'll use Facebook, and I don't want to use Twitter.


    Is the "share link" broken or am I missing something?

    Kevin,

    The link that you shared is a private theme link.  If you want to keep the theme as private, but still share it with the people on your project, the best way to do this is to use libraries collaboration tools.  If you don't mind if the link is 'public' on the site of color, you'll need to publish the theme, then share the published link.  See the instructions below.

    Collaboration of the library

    The best way to collaborate on projects is to use shared libraries.  This allows you and your client to share assets and assets (including the color themes) are available directly in your applications.  Here are more details on how to work with libraries.  Once you have a library that you share, you can simply add the color theme to this library.

    Simple link sharing

    If you do not want to use libraries and prefer to just give a link, you will need to make sure that the theme is published.  And you must make sure that you copy the published link to share.

    (1) after you create a theme, click on the link "publish."

    (2) you will see a notification "published."  Then you will see a date of publication on the topic of the page.  Click on the link 'display '.

    (3) the resulting page is the theme of 'public '.  You can copy the URL from your browser, or click on the 'share' link to copy to the Clipboard.

    Otherwise, you would need

  • Copy the web addresses of mail links on safari

    If I copy a web address (URL) of Google Chrome and paste it into Apple Mail, it sticks as a ready to click on the link.

    Same thing using Safari and it sticks in the form of text and I have to put highlight and do a command-k to make a link.

    Someone knows a way to change the Safari or cut-and - paste differently this mail received the URL as a link?

    You can use the share link in the upper right corner for a link by e-mail, but there is no way to edit, cut and paste.

  • El Captain: Share buttons doesn't work anymore - the system-wide

    No longer share with Mail, Message, Airdrop, Notes

    When I installed El Captain (now 10.11.5) everything went well.

    Recently, I noticed the very appreciated share button would not work more.

    Symptoms:

    • Click on for example share with text or E-mail would be 1. does not bring the result 2. make the old window devoid (window in safari). Only closing the entire application restores.
    • checked with other applications: Notes, Safari, Mail, etc. Finder - they show the same problem

    Tried solution

    • find any suggestion in the forum Share button stop works OS X El Capitan and I tried option 1:
      • No cure
      • Even worse: now the share links to Notes and messages and others disappeared!! And even displayed more when you click on the more button! A new bunch of undesirable social media stuff populated this list instead.
        • How do I get back them
        • How to take these unwanted items in the list

    Now clueless. Someone else has the same problem?

    Does anyone knows how to fix this?

    PC Backup and reinstall OS X El Capitan of OS X Recovery.

    https://support.Apple.com/en-us/HT204904

    Best.

  • Add WebWorks App to share the map

    Dear community,

    How can I add my Webworks App for the ShareCard?

    I want exaclty:
    I want to 'share' link from the browser native of my application, but I can't find a solution how to add my application to share the maps.

    Someone knows how to do this?

    I believe that this sample application shows how to do this.

    https://github.com/BlackBerry/BB10-WebWorks-samples/tree/master/invocation

    Above all, you will be interested the app "Remained" in this repo.

  • YouTube link will not work

    Clearly, I'm doing something wrong.

    I draw from the Widget Library, the YouTube Widget in the folder Social, and even though it looks nice, my link does not work.  Lil' help?

    Dan

    Hey thanks. Actually I was wrong adding the link to the page rather than the share link that is different. Also added the base URL rather thank the tail of identification of the binding.

    Sent from my iPhone

  • Impossible to share your library - 'Page not found '.

    Why is this? I need to give someone a bunch of assets of the dynamic object for a PSD recently, I shared with them.

    Also when you create a new library, it does not appear on my account.


    He comes to shows me the image below when I click on the link on the side menu 'share link... '. » :


    I need help with this ASAP because it is for a customer, and they don't have much time to wait! >. <

    This never used to happen with older versions of PS

    Screen Shot 2016-01-19 at 19.14.49.png

    Hi Ken,

    I just have another go and it seems to have been fixed.

    It gives me a page that allows me to the public library and gives me the opportunity to be emailed a link to share!

    Happy days.

  • Using the links internal pdf when you view the document online

    Hello

    I created a pdf document with internal links to different parts of the document. However, when I published in Acrobat.com to share, links are more operational. Is there a way to keep the operational links being seen online? (Once download you them they are usable again)

    Thank you, Daniel

    Hi dalvo2002,

    I'm sorry, but the links are not rendered in the preview of the files that you see on Acrobat.com. The links are not removed from the file (as you have discovered), they just are not included in the preview.

    Best,

    Sara

  • Share a folder of creative cloud

    I would like to know if someone has their set creative cloud storage up this way... and if so, how did you do?

    Here's what I'm trying to do: I have all my documents saved in my cloud CC in order to make the files accessible to the people I work with. What I did to create a folder in my "Creative Cloud Files" folder called "working Docs. I'm working on my projects of this folder and it syncs to the cloud in real time. I then shared this folder as being public and make sure that 'download' is enabled.

    My assumption is that if I did this accessible and downloadable top-level folder, it would be downloadable. However, this is not the case. When the user opens a subfolder and drills down to an individual asset, the parameters are still defined "private." Instead of being able to download an entire folder or an individual file of this setting at a higher level, so it seems I'll have to assign a share link to all the individual files. It completely defeats the purpose of what I need to do. I want the person that I share with to be able to access one of my papers at any time. Has anyone achieved this level of sharing? Adobe support couldn't even answer my question so I guess that's not possible.

    not a lot of activity in these forums...  In my view, that it is not available. That sucks.

  • How to share main project to another topic

    Hello. I'm new on HR v 9. Yes, sorry for the stupid question maybe

    We develop software that consists of two parts: Core & portal.

    Each party must have separate help page, so we have created two projects.

    Q: some topics on each project will be identical, how share, link them between projects?

    We do not want to duplicate our work. Subject must be maneged on one place.

    Thank you.

    I think you'd be better to have a project and then apply conditional build tags to topics. Then by creating different layouts in the pod SSL and using different build expressions you could include / exclude content according to the needs.

    Topics that will never be Core could be labeled CoreOnly, topics that will never be Portal could be PortalOnly tag. Common themes would be left without a label.

    The main provision would use the expression NOT PortalOnly while the layout of Portal use the expression NOT of CoreOnly.  By this means you would exclude what is not wanted and understand everything.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

Maybe you are looking for