BB10 cascades share picture of social media

Hey everyone,

I work with this feature, where users can share an image of social media such as Facebook and Twitter.
The image is the screenshot of some screen. and when the screenshot is taken, I checked on the Gallery, and the image is "Device/photos/image1.jpeg".

And now I want to share this image on social support.
Here is my code:

void invoke(QString target){
    InvokeManager invokeManager;
    InvokeRequest request;

    request.setAction("bb.action.SHARE");//   target == "Facebook" or "Twitter"
    request.setTarget(target);

//    request.setMimeType("text/plain");
    request.setMimeType("image/jpeg");

//    request.setUri(QUrl("Device/photos/image1.jpeg"));
    request.setUri(QUrl::fromLocalFile("Device/photos/image1.jpeg"));    InvokeTargetReply *targetReply = invokeManager.invoke(request);
    invokeManager.setParent(this);

    if (targetReply == NULL) {
            qDebug() << "InvokeTargetReply is NULL: targetReply = " ;
        } else {
            qDebug() << "reply != NULL ";
//            qDebug() << "targetReply : " << targetReply->setParent(this);
            qDebug() << "request action :  " << request.action();
            qDebug() << "request target :  " << request.target();
            qDebug() << "request uri :  " << request.uri();
            qDebug() << "request mime :  " << request.mimeType();

            targetReply->setParent(this);
        }
}

When this function is called, nothing happened. and I see on the console, it print "response." = NULL"which means invokeTargetReply's response to my request. but nothing happened.

I'm trying to implement the "text/Plain" MIME type, so it's just a plain text to Facebook share. And it works very well.
I'm guessing that the URI of the file has errors. I don't know how is the proper way to setUri.
can someone help me?
a little help would be highly appreciated.

Thank you
Kind regards

Yoga

Hei,

I was able to solve it by changing the setUri this:

QString workingDir = QDir::currentPath();

request.setUri(QUrl("file://" + workingDir + "/shared/photos/image1.jpeg"));

Thank you!

Tags: BlackBerry Developers

Similar Questions

  • Apple Watch Workout: How to share training on social media

    I use the app to drive on my Apple Watch regularly. When I save a workout, it doesn't seem to be a way to visualize the results later. In addition, unlike other training applications, it seems not to be a way to publish a training on Facebook or Twitter. Any suggestions?

    You can view and share them from the application of the activity on your phone.

  • My iphone camera 5 does not work properly. I'm unable to upload photos on social media or save the images that I click on them.

    IF I take photos from the camera application the picturs are not getting saved in the camera or anywhere else.

    IF I'm ready to download some pictures on social media photos are not selected.

    IF I am trying to record a voice message on a social media voice message is sent successfully. But it records all sounds in there.

    I would be very grateful if you kindly please look into the matter.

    Anyone visiting, please help me out, give me your suggestions.

  • Operating conditions unclear about the use of social media

    The decline of Adobe Stock additional conditions use of social media on the stock photos at all, if the terms of use governing the social media site include any provision which would grant exclusive rights or the ownership of these works or modified work to anyone. FAQ (German) saying to this effect, use of social media is possible, if the image shows the reference. While it and can post it on Facebook for example?

    Hi Dirk,

    There are two aspects of this issue:

    1. You can use pictures on social media if you reduce the size of the image to the social enabled versions that is not larger than 1000 pixels on the long side and add directly copyright information on the image itself. The specific language for copyright information must be in the license agreement, but it must include the name of the copyright of Adobe Stock/artist.
    2. You cannot use images on any social media site claiming copyright of the uploaded images. You must ensure that they do not send the images to Web sites that break our license agreement.

    Hope that answers your query.

    ~ David

  • The individual pictures in my wallet can be SHARED through email, twitter or other sites of social media by visitors?

    Hello

    My friends I wanted to share pictures through the social media/email in my wallet rather than my entire Web site. Is there a way I can make it able to do?

    Thank you

    Bell

    Hi Nicolas,.

    Not exactly, but if you right-click on an image and click "Open in a new window", you can use the URL in your browser window to share just that image.

  • When I share the link to my site on Facebook or other social media, the preview image is empty, there is nothing there anyway to solve this problem?

    When I share the link to my site on Facebook or other social media, the preview image is empty, there is nothing there anyway to solve this problem?Screen Shot 2015-02-20 at 1.50.27 PM.png

    J-26 is a widget that facilitate...

    Adobe Muse SEO Widgets

    Steve

  • How to add widgets which will allow visitors to share articles via e-mail and social media?

    I built a site that has a page with a widget Accordion for feature articles.  I would like to add widgets that allow visitors to share articles via e-mail and social media.  How can I do?  And the items must be in PDF format?

    Here is the page.

    http://mckenzielaird.com/nonprofit-law.htmlhttp ://

    Quite a few sharing widgets in the Panel Social would be in the library of Widgets, including FB Like / share, Pinterest, LinkedIn, Google + etc., that may be useful to you.

    Thank you

    Vinayak

  • social media share

    can I allow social media share on folios shared via the application Adobe Digital Content (i.e. folios that are not the apps themselves)?

    "Social sharing is available for iPhone and iPad viewers. However, this feature is not available for a single question apps or viewers Android. »

    See this page

  • Connects my signature is a logo and adding social media

    Hi, can someone help please;

    I'll just put up our custom email I want to include the company logo and make sure it can be clicked on to go through the Web site (hyperlink have)

    I have the inserted picture and that works well, but can not see where I can add the link to the source of the image?

    In addition, would like to have the image of social media buttons to make even separately, below the logo.
    Is this possible too?

    Just want to put in place a good time and not having to worry about this again!

    See you soon.

    you will need to use an HTML file.

    Compose your signature in Thunderbird (as you would an email). Add graphics and select do not include in the dialog box for any image file residing on the internet.

    When you research how you want, select security on the file menu and save to a file. (Sae as vial saved a HTML file)

    Then set the signature in your account settings to point to this file (where you have saved it to)

  • Social media &amp; cat options

    Hello community and Adobe

    With the current trend of social media, it seems to be a big gap in what we can offer to our learners with Captivate premium.

    Badges and certifications can be downloaded and then uploaded to social media, but it is the same measure of interaction with social media with the LMS.

    Is there a possibility where we can create a social media within the LMS option?

    For example:

    A chat feature in the gamification section where you can chat with your colleagues?  (This cat can be an electronic bulletin board, live chat, etc, just like other social media)

    A list of messages to highlight for the homepage of learners where learners from the same groups can share ideas and experiences of internships with their colleagues?

    A post directly to * insert media social source * when someone completes a course, wins a badge, etc..

    There are many options to offer, but I hope that my examples give a correct indication of the feature, to which I am referring.

    All information on this are greatly appreciated.

    Sincerely,

    Sean

    Hi Sean,.

    Thanks for the comments.

    I'll take note of this as a feature request and pass on to the engineering team.

    Thank you

    Deepak

  • If I modified an image can I then publish it on social media sites?

    With respect to your use of social media Disclaimer, is it only refers to images unchanged stocks? Whereas if I was wanting to display a picture of a show that I did not changed/modified - I would need to include the photographers name/Adobe copyright information and keep the size of 1000 px on the long.

    But if I could post a picture that I have modified to include our products on Pinterest or Facebook, without such limitations of copyright and size?

    I understand about not allowing others to download/use of stock images, but at this point, they will not stock images. I hope this makes sense. I don't have to explain it better.

    If they are significantly altered (not just resized or cropped), you're generally OK.

  • How can I get the image that provides information on social media sites when I put my website on a position to be different from what it is

    If you put in my Web site addresses of customers on social media sites (like Facebook and Pintrest) image that filled is not the image we want. How do I change of these images so that's their logo or a linked picture.


    serenity post example.png

    Hi there, you need to read (just google it) on the metatags for social media

    Google ' media meta tag social og "and you get several guides that explain what they are.

    You can then apply to your layouts depending on the module and use cases.

  • Social media for list views Blog buttons

    I would like to put on my blog social media buttons, so that users can share the position in the list view. When I actually adds these buttons they share in fact any page where the list is located, rather than the part of this post. Anyone have this problem? All solutions?

    Use the url for the blog tags, you must define the social links to those URLs and not run by default where it will be the page as your conclusion.

  • How can I create my own social media buttons and connect again?

    I want to create my own buttons of social media (from facebook, twitter, google + and pinterest) and have always related.

    When I use the widget to social media in muse, I can't change the layout. Is there a work around?

    I tried using the code from the developers of facebook share on the page properties, but it has always created a tiny facebook button that I couldn't change.

    Does anyone know a solution?

    Thomas

    Hi Thomas,

    What you can do is, manually import the custom icons that image of Muse and link them to your pages.

  • Impossible to download social media! -no available presets

    -adobe first 12 items

    -windows 8.1

    -quick time 7.75

    When I want to download social media without presets appear

    What can I do?

    I need help - please

    Bravo palombini

    The problem exists with and without the antivirus and firewall disabled?

    Have you updated to the 12 to 12.1 update? If this isn't the case, please do, using Menu/setting to update a project.

    When you publish + share/computer/QuickTime, you find presets for the choice of QuickTime? If so, what are they?

    Go in Edit Menu/Preferences/Web sharing and updating Services online?

    Then, if the problem persists, remove the Adobe Premiere elements Prefs file and, if applicable, the together 12.0 folder in which the Adobe Premiere elements Prefs file exists.

    Local disk C

    Users

    Owner

    AppData

    Roaming

    Adobe

    First elements

    12.0

    and in the record 12.0 is the Adobe Premiere elements Prefs file that you delete. If it does not, we delete the whole 12.0 folder in which exists the Adobe Premiere elements prefs. Don't forget to work with folder Option show hidden files, folders and disks active so that you can see the full path. Windows 8.1, I think that the path to the Folder Options starting with File Explorer.

    Please consult the bulletin and review, and then let us know is it works above for you there. Later.

    Thank you.

    RTA

Maybe you are looking for

  • Graphics BIOS Z580

    Hello Some owners of Z580 may help me? I intend to buy a Z580. The Z580 BIOS has an option to choose separate graphics cards (i.e., dedicated Nvidia card)? Some models include a choice in the BIOS only between UMA and switchable graphics (Optimus). O

  • &lt; CLOSED &gt; update of bike E

    waiting for update bike E

  • How to create the default recovery disc factory with OneKey Recovery 4.0

    I have a K430 and before I use it (as with any machine, I bought) I wanted to make my recovery disks. Throughout this site there are guides to do this with version 7, but this desktop computer has version 4.0 of OKR I can record an image of my partit

  • Good info USB - Serial

    OK so I just spend a day of debugging an application that has a race condition insidieous and thought I'd share a little. The system communicates with a DUT using an adapter USB - series with theFTDIser driver installed.  what I saw was sub - vi that

  • Windows Media Center/player or my Acer arcade deluxe will not play DVDs

    Original title: WINDOWS MEDIA CENTER/PLAYER or MY ACER ARCADE DELUXE WILL NOT PLAY DVD CANT GET IT to PLAY anything for NOW Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: You have prob