Cannot invoke the picture editor

I'm calling the standard image editor, but but failed. I use 10.3.2 API and testing my application on the Simulator.

Here is my code:

Inside the .pro file, I added libs:

LIBS += -lbbsystem

Inside the .bar file, I added the following permissions:

access_shared

hand. QML:

import bb.cascades 1.4
import bb.cascades.pickers 1.0
import bb.system 1.2

Page {
    ImageView {
        id: imageView
        scalingMethod: ScalingMethod.AspectFill
    }

    attachedObjects: [
        FilePicker {
            id: filePicker
            type: FileType.Picture

            onFileSelected: {
                invocation.query.uri = "file://" + selectedFiles[0];
                invocation.trigger("bb.action.EDIT");
            }
        },

        Invocation {
            id: invocation

            query {
                invokeTargetId: "sys.pictureeditor.cardeditor"

            }
        }
    ]

    actions: [
        ActionItem {
            title: "Select Picture"
            ActionBar.placement: ActionBarPlacement.OnBar

            onTriggered: {
                filePicker.open();
            }
        }
    ]
}

Debug gives me the next exit to start the application:

InvocationWrapper::onQueryFinished: menu service population failed
  query mimeType=""
  query uri=""
  query data=""
  query metadata=QMap()
  query action= ""
  query target= "sys.pictureeditor.cardeditor"
  query perimeter= 0
InvocationPrivate::onQueryResolved: query failed, no armed signal sent.

What's wrong?

After some tests, I can confirm that this call does not work in QML, it will work only in C++.

Here is a code snippet

applicationui.cpp

void ApplicationUI::invoke(const QString& targetId, const QString& actionId, const QString& mimeType, const QString& uri, const QString& data) {
    qDebug() << "Invoke:" << targetId << actionId << mimeType << uri << data;

    InvokeRequest request;
    request.setTarget(targetId);
    request.setAction(actionId);
    request.setMimeType(mimeType);
    request.setUri(uri);
    request.setData(data.toAscii());

    // Start the invocation
    InvokeManager* invokeManager = new InvokeManager(this);
    invokeManager->invoke(request);
}

hand. QML

onFileSelected: {
    _app.invoke("sys.pictureeditor.cardeditor", "bb.action.EDIT", "", "file://" + selectedFiles[0], "")
}

Tags: BlackBerry Developers

Similar Questions

  • change the picture editor no viewer

    Hello!

    For images, I like to keep my Active Viewer. What I want to change is the Photoshop editing program.

    How can I keep the Active Viewer but change the picture editor?

    Start Photoshop, open the image

    No settings to change

  • Problems with the Windows on Windows 7 Photo Viewer, cannot open the picture

    Good evening!

    I can't open a few photos that I downloaded from my digital camera's SD card.  They are all in the same folder, and they are all JPEG.  Some of them are open very well, but there are MANY who are not open and I get the message: 'Windows Photo Viewer cannot open this photo because Photo Viewer does not support this file format, or you do not have the latest updates for Photo Viewer. "  As I said, they are all JPEG, as well as the Windows Photo Viewer is already set as my default Photo Viewer.   When I opened the window of the picture viewer I have not been invited for updates.

    I don't understand why some of my photos to shoot to the top of fine and the rest don't pull up at all.   Where will ensure that I have the latest update?  You have any other suggestions?

    Thank you in advance for your help!

    Looks like there are probably good copies elsewhere then... I was worried, you might well have lost some of your photos, and it is always better to access the card and copy and paste the files (and then check that they are ok) before using the software download and the removal from the Board. If the files have been corrupted somehow during the transfer process, they can still be recoverable in respect of the SD card using something like the free version of "recuva" providing that the SD card has not been re-used and previous files overwritten by new material. However, if your sister still photos as well which should not be necessary.

    I don't think this is likely to be a problem with the photo viewer, but let us know when you received that email... all the best - Ric.

  • Cannot set the picture password after deleting e-mail coporate - RT of Windows account

    I added my e-mail account to company for the e-mail application integrated and told me that the security settings would change and I knew.  Basically, the company policy was a strong password and the password for the photo, and the PIN password found himself distraught.    I was fine with that but I have now deleted the account of the company of my account yet the photo and password PIN create buttons are always disabled, and I was not able to reactivate them outside of a complete reinstallation of the operating system.

    I looked and see only problem with a Surface attached to a domain, but which relate to me as I am with the Surface/Windows RT which cannot be joined to a domain.  I tried but some register with no luck.

    Someone point me in the right direction on how to recover the ability to use the picture password.

    Thank you

    You can reset the security policies by visiting Office

    Access control Panel\User and familyuser accounts Safety\ accounts

    On the left side, you will see "reset security policies" link.

    Click reset security policies , and then click OK in the confirmation box.

    You should now be able to configure the picture passwords again.

    I hope this helps...

  • Other homegroup users cannot see the pictures on Windows Photo 8.1 app

    We have a new desktop computer with Windows 8.1 and have trouble getting both me (Administrator) and my husband (another user PC) see all photos in all photo sharing folders. I read all the other assignments. I've restored the library of images with and without pictures, worked both file manager and control panel to verify that all the State say shared and two of us are included in the homegroup.  Libraries appear as files in the home group, but on the side admin (my own) photos of my husband picture library are only pictures in his personal file of photo. My two files contain only the ones I'm trying to make him see.

    However, when I view the photos on his side or my app, I don't see is our personal photos and not the other. I don't want to copy the pictures in each of our own files that we both should be able to change and move images. All images must be shared and edited and stored in a spot on the disk.

    Troubleshooting-oth sides indicate that everything goes well on both sides. Please help me shoot hard.

    Hello Goodsn,

    Thanks for posting your query on Microsoft Community forum.

    I wish to inform you that you can use the file sharing to share things on two computers. The first time that you connect to a network, you can ask if you want to find computers, devices and content on the network and automatically connect to devices such as printers and TVs. turn on this parameter prepares your PC to share files and devices on a network. It automatically sets the firewall and security settings appropriate for the type of network to which you connected. You can disable this option at any time.

    I suggest you to run the troubleshooter Homegroup if necessary provided in the following article and other measures.

    The homegroup Windows problems

    Additional information:

    As you are also aware that file-sharing is one of the best way to share files and folders between computers that are connected to a home group, work group or domain.

    If you want to use file sharing I suggest you follow the steps in the following Microsoft article.

    Share files and folders

     

    You can also try the steps in the following article to share files on the devices connected to the network.

    Search for computers, devices and content on your network

    You can also try the different steps in the below mentioned tutorial to share files on networked devices.

    Sharing of files and printers

     

    You can see the steps described in the following articles. Although the article discusses Windows 7 but the steps mentioned in the present keep too good for Windows 8 .

    Share files with anyone

    File sharing essentials

    I hope this helps. If the problem persists, get back to us with the current state of your computer and the result of the proposed suggestion, we will be happy to help you.

    Thank you.

  • cannot enlarge the pictures since the installation of Sierra

    Since the installation of macOS Sierra yesterday I can't get photos in pictures to enlarge them by double-clicking on them.

    Sorry, but we cannot see you if you have details - double click to enlarge photos, unless you have a problem and without any information we have no way to help

    What happens? Did you just install OS X Sierra or wipe you your drive and install it or what? What else can you a total unknown who do not see you that could help them to help you?

    LN

  • Windows cannot find the pictur error ~ 1.exe

    Windows cannot find pictur ~ 1.exe error, when you click ok then pictur ~ 2.exe cannot be found, and then click ok and imagev ~ 1.exe is not found. Happen sporatically throughout the day and the error messages inspire each other to end up with dozens of the same error message in the task bar. There is no pictur ~ 1.exe in msconfig. You need to determine how to make this error go away, or which is looking for this program, or to all the less determine where it is sought.

    Although I always think you should ask the help of expert antimalware, if you want to dig a little deeper on your own, here are 3 ideas, neither has no guarantee of success:

    1. take a look in the event viewer (start > run > eventvwr > OK) and see if error messages are displayed that give the name of the routine which tries to launch these exe files.

    2. learn to use the process monitor (and, perhaps, Process Explorer).  These are powerful tools, and the learning curve is a bit steep.  I can't help you here.  See the links in the sidebar or the other of the two pages linked above.  You can start by watching the video here.

    3. in association with the use of Process Monitor, create an exe file with the name that appears in your error message and save it in a folder that is in your path (for example, C:\Windows).  You can make a copy of an existing such as Notepad.exe exe file and rename it to picture ~ 1.exe or create an exe of your own by using a tool like ExeScript.  If you get real ambitious, you might learn a little windows script (for example, this tutorial) and have your exe file displays the name of the process that called it (again, to help you with this is beyond my skills).

    If you try one of these ideas and are able to go to the bottom of your problem, please post back with the details so that others (especially me) can learn.

  • Cannot rotate the pictures in the photo gallery from the iPhone 4S and sent as a jpeg attached

    I got jpeg pictures in the friends iPhone 4S emails.  I save all the photos of my library of images, pc windows 7.  Some are upright; No problem.  Some are on the side.  When I try to turn, some will turn, but most will not.  A screen comes up saying that the Windows Photo Viewer cannot save changes to this picture because there is a problem with the properties of the image file.  Saw this screen of the error 0 x 80070057.  Read that others have the same problem.  Some people talk about Meta-data, but for a novice, a detailed explanation is necessary.  Some recommend steelbytes to download so-called stripper; again, to a more detailed novice is necessary.  Someone please respond with a step by step detailed solution to this problem, even at every stage of a download.

    Property restrictions stripper iphone 4s,

    http://www.SteelBytes.com/?mid=30&cmd=download&PID=15

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-pictures/cant-rotate-some-photos-in-Windows-7-but-can/3a809845-9144-4BB1-9bb3-ab4f5b856524

  • Cannot display the pictures of products on certain Web sites, why?

    While in some sites to see their products, I click on the product and the text comes up, no picture of the product just an empty space. I also tried to get my box of recipes through another site and the page is completely blank. The homepage of these sites is fine, photos and everything, but when I open a link in the site is when I get pictures spaces and pages. This happens only when I use Firefox, but I tried Internet Explorer and had the same results. No idea why?

    See:

  • Cannot open the pictures library after the data transfer to my new macbook

    I transferred all my data from my old MacBook Air to my new MacBook Pro via a restore from time machine.

    My first time to open my library on my News Photos Photos of MacBook says that he must perform the restore procedure (see screenshot in German language).

    After the confirmation of this message Photos responds with a message telling me that it can't open the library (see screenshot in German language). The message to distinguish basically says Photos tried to fix the library, but it was impossible to open it.

    Any ideas that I could do to fix this problem?

    Thanks, Gregor

    Try saving the photo library and hold down the command and option keys while pictures of launch and repair the library it - that sometimes seems to be more successful

    LN

  • Cannot open the picture book project

    I started a Photo Book project and got to half way through. I then tried to add a picture more to the project. Could not find out how to import an additional photo. But then I tried ebb in the book project, and can't open it same. It gives the same error message each time. See below. Any ideas? Thank you.

    I figured out how to add a picture to an existing Photo book. But I can not even open the book.

  • Cannot use the picture to paste on Word document

    All of a sudden I can no longer use the COPY IMAGE function which I use to PASTE this image on a WORD document.
    This is the case when I use 2 sites different banking services online, where I want to COPY an IMAGE of a cheque and then try to paste an image of the cheque on a WORD document.
    Strangely, all websites otjher, I can use this feature to COPY the IMAGE to copy the images of all the photos and text and then stick them on a WORD document.
    Why does now than when I try to copy and paste pictures of my banks cheques from my 2 (or more)?

    http://www.DaniWeb.com/hardware-and-software/Microsoft-Windows/Windows-Vista-and-Windows-7/threads/196562/copy-and-paste-broken-in-Windows-Explorer

    read this to see if it would help, also some info please:

    brand and model of browser, OS, pc and ServicePack, current antivirus?

    also check the malware:

    Download, install, update and do a full scan with these free malware detection programs at:

    Malwarebytes (MMFA): http://malwarebytes.org/

    SUPERAntiSpyware: (SAS): http://www.superantispyware.com/

    http://www.Microsoft.com/security/scanner/en-us/default.aspx Security Scanner   

    http://www.eset.com/us/online-scanner/ eset online scanner

  • Verizon LG phone cannot download the pictures

    How do we install the LG phone to my computer

    Hi BeritLocatelli,

    ·         How you try to import pictures from the phone to the computer?

    ·         What happens when you try to upload photos?

    ·         Have you installed the software and the related drivers?

    ·         You use the default photo Wizard or the suite software LG?

    Follow the steps in the article.

    How to install and configure Bluetooth devices in Windows XP Service Pack 2

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

    You can also check the phone's manual for how to connect it to the computer.

  • I cannot download the pictures.

    I have windows vista and for some reason all of a sudden I can't upload images.  I can't upload pictures from a digital camera to my computer. When I plug in the camera, the computer does not even recognize the camera.   I can't download pictures from my computer to a web sites such as My Space and when I try my laptop crashes. And I can't understand why.

    Hi Bigcat777,

    Thanks for choosing Microsoft answers Forums.

    Changes have been made to your computer before starting the question?
      
    You can perform the system restore to restore your computer as it was before this problem:

    To restore the operating system to an earlier point in time, follow these steps:

    Click Start, type system restore in the search box, and then click System Restore in the list programs.

    If you are prompted for an administrator password or a confirmation, type your password or click on continue.

    In the System Restore dialog box, click on choose another restore point and then click Next.

    In the list of restore points, click a restore point created before you started having the problem, and then click Next.
    Click Finish.

    The computer restarts and system files and settings are back to the State they were in when the restore point was created.
     
    Let us know if this solved your problem.

    Thank you
    Support Microsoft yama-

  • Windows, message recipients Photo Gallery cannot open the pictures

    In the menu 'Properties' of the image that I chose, I tried to change it be opened with "Adobe", but when I try to take the photo, I get a msg that the file does not have a prog. Assoc. w / it & to perform this action, I need to create Assoc. in Control Panel.

    I've performed this action for the window Gallery j. files but still does not work.

    I want a quick & simple way to send pictures to other people who may not share the same op system.

    In the menu 'Properties' of the image that I chose, I tried to change it be opened with "Adobe", but when I try to take the photo, I get a msg that the file does not have a prog. Assoc. w / it & to perform this action, I need to create Assoc. in Control Panel.

    I've performed this action for the window Gallery j. files but still does not work.

    I want a quick & simple way to send pictures to other people who may not share the same op system.

    =============================================
    Change the associations of the image on your system has no effect the
    recipients of an e-mail message. Who controls just what program
    starts when you open a photo on your system.

    BTW... If you are referring to Adobe Reader... it is to view .pdf files
    and is not useful for photos.

    If your photos are JPEG (.jpg) files your recipients should be able to
    to view them.

    Sharing photos and videos by using Windows Live Photo Gallery
    http://Windows.Microsoft.com/en-us/Windows-Vista/sharing-photos-and-videos-by-using-Windows-Live-Photo-Gallery

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

Maybe you are looking for