Receiver independent Invocation

Hi all

I'm working on an application, I use the framework of the call to open a page of the UI accordingly.

Here is my code


        application
        
            bb.action.OPEN
            *
            http://www.url.com"/>
        
    

And I am in my PPC manages the application to do the rest of the things, that is to say open the specific page.

I don't know that the code is right or not. But the application does not open by clicking on the url instead open the browser.

Perhaps this might solve your problem

http://devBlog.BlackBerry.com/2014/05/create-your-own-URI-for-invoking-apps/

Tags: BlackBerry Developers

Similar Questions

  • Call the function in the UI part without head

    I develop some app with no head.

    When I change the code in the head part and build - launch. But nothing changes in the part without a head.

    I have another solution call the function in the UI part headless. But whatever it is called.

    Please help me solution?

    The part without head of a long walk without head application is still running in the background. It will not update until you stop the part without a head.

    To stop the game without leading the race, you have three choices:
    (1) build increment in the bar file version - descriptor.xml. This will force the part without head to stop and restart with the new code.

    (2) use the monitor of the device to manually stop your application from running. Then, new launch and your game without head will run the new code.

    3) to implement your own way without a head, like a button that would send a personalized call to headless with (say) action "com.myDomain.myAppName.SHUTDOWN" and when headless receive this invocation, operate you this line:
    BB::application::instance()-> quit()
    This will make the part without head stop, then you run and your part without head will take place the new code.

    I prefer the #3 method, but if you do, don't forget to hide this feature before releasing to the public.

  • GRRRR: calls _UNBOUND_ broken in BB10.2 as well

    I can't believe how much the BlackBerry OS 10.2 broken call framework. Several of my related calls have been broken when released 10.2.0.424, but I thought I had everything working again by the way of using InvokeQuery for InvokeManager/InvokeRequest , but I just noticed that one of my independent calls doesn't work now either.

    My allows app users share a web page title and the URL with essentially the same list to invoke targets as does the BlackBerry browser (i.e. BBM, text, email, NFC, etc.). Under BB10.0 and 10.1, it worked perfectly, but now I noticed that with 10.2 sharing a picker page shows no candidate targets. This is how my app it was:

        InvokeQuery* shareQuery = InvokeQuery::create().parent( this ).invokeActionId( "bb.action.SHARE" ).uri( "http://dummy" );
        this->shareAction = InvokeActionItem::create( shareQuery ).imageSource( QUrl( "asset:///images/action-share.png" ) ).title( tr( "Share Article" ) );
        success = QObject::connect( this->shareAction, SIGNAL(triggered()), this, SLOT(shareActionTriggeredHandler()) );
        ASSERT( success );
        this->addAction( this->shareAction, ActionBarPlacement::InOverflow );
    

    .. .and the shareActionTriggeredHandler() slot looks like this:

    void MyApp::shareActionTriggeredHandler() {
        QVariantMap metadata;
        metadata["subject"] = ;
        metadata["description"] = ;
        this->shareAction->setMetadata( metadata );
    }
    

    As I said, it worked correctly until BB10.2. When triggered, it used to show a long list of share targets, including all my email accounts, Remember, BBM, NFC, text, etc., but now share watch selection page just an empty list.

    Based on the reviews of a BlackBerry Development Advisor, it was determined that the culprit for the broken consolidated appeals was InvokeQuery, so I changed using the method of InvokeManager/InvokeRequest . To make things much easier to use, I have developed (and published on this forum) a Summoner class all wrapped carefully and included a Builder to allow use it even simpler. This worked very well for related calls, so I tried to change my independent invocation to use:

        ActionItem* shareAction = ActionItem::create().imageSource( QUrl( "asset:///images/action-share.png" ) ).title( tr( "Share Article" ) );
        success = QObject::connect( shareAction, SIGNAL(triggered()), this, SLOT(shareActionTriggeredHandler()) );
        ASSERT( success );
        actionSet->add( shareAction );
    

    .. .and now the slot shareActionTriggeredHandler() looks like this:

    void MyApp::shareActionTriggeredHandler() {
        QVariantMap metaData;
        metaData["subject"] = this->label->text();
        metaData["description"] = this->link;
    
        Invoker invoker;
        invoker.setAction( "bb.action.SHARE" );
        invoker.setMetaData( metaData );
        invoker.setUri( "http://dummy" );
        invoker.invoke();
    }
    

    With this code I get plus a list of targets hand empty. Instead, I go straight to the map "compose mail", which is also not what's supposed to happen. Looks independent invocation in BB10.2 is does not meet targets of candidate correctly with invocation.

    Does anyone know another way to do an independent invocation that always works as expected under BB10.2?

    UPDATE: Finally got right. With slightly modified code, it works in all versions of BB10. When I changed to the 'new' methond invocation I did that:

    void MyPage::shareActionTriggeredHandler() {
        QVariantMap metaData;
        metaData["subject"] = ;
        metaData["description"] = ;
    
        InvokeQuery* shareQuery = InvokeQuery::create().parent( this ).invokeActionId( "bb.action.SHARE" ).uri( "http://dummy" ).metadata( metaData );
        Invocation* invocation = Invocation::create( shareQuery ).parent( this ).onArmed( this, SLOT(shareArmed()) );
    }
    
    void MyPage::shareArmed() {
        Invocation* invocation = qobject_cast( sender() );
        invocation->trigger( "bb.action.SHARE" );
        invocation->deleteLater();
    }
    

    It works very well with BB10.0 and 10.1, but the call was not past all minus 10.2. It turns out that the deleteLater() was the culprit. It seems that time must be slightly different under 10.2 and it is not safe to call deleteLater() in signal armed() Manager. Do this way works under all versions of operating system:

    void MyPage::shareActionTriggeredHandler() {
        bool success;
        Q_UNUSED( success )
    
        QVariantMap metaData;
        metaData["subject"] = ;
        metaData["description"] = ;
    
        InvokeQuery* shareQuery = InvokeQuery::create().parent( this ).invokeActionId( "bb.action.SHARE" ).uri( "http://dummy" ).metadata( metaData );
        Invocation* invocation = Invocation::create( shareQuery ).parent( this ).onArmed( this, SLOT(shareArmed()) );
        success = QObject::connect( invocation, SIGNAL(finished()), invocation, SLOT(deleteLater()) );
        Q_ASSERT( success );
    }
    
    void MyPage::shareArmed() {
        Invocation* invocation = qobject_cast( sender() );
        invocation->trigger( "bb.action.SHARE" );
    }
    

    Notice that now the deleteLater() is run in response to the signal finished() of invocation. I guess that the first way under BB10.2 the invocation has been removed before the Manager of signal armed() had the chance to shoot. Because documents explicitly says that the finished() signal indicates that it is safe to call deleteLater(), it was probably just a fluke that it worked Ok under BB10.0 and 10.1.

    Also note that in the second code example above, the armed() signal is attached to the shareArmed() with the clause of generator of onArmed() slot, but finished() signal is attached to with QObject::connect() deleteLater() instead. This is because it is IMPOSSIBLE to do this:

    Invocation* invocation = Invocation::create().onFinished( invocation, SLOT(deleteLater()) );
    

    That won't work because the "invocation" in the first parameter of onFinished() does not actually exist until that AFTER this line ends the execution.

    Hope the other helps avoid pitfalls, in that I came.

    greenmr wrote:

    OK, I thought I had resolved, and I did, but only for BB10.2. Using this new method it is now BROKEN on 10.0 and 10.1. Now when I run my application

    • My old method invocation using share triggers Ok on all versions of BB10, but on 10.2, the list of candidates target is empty.
    • Using the new method is restored to the list of targets of the action, BUT...
    • Using the new method invocation fails completely on BB10.0 and 10.1.

    I do not know what BlackBerry is playing to with invocations. For such a key service on an OS that insists on the "flow" between applications, invocations is a cesspool of labryinthine. There are at least three ways poorly documented to implement any type of invocation, but each new major OS update breaks the previous working methods. THIS NEEDS TO BE FIXED!

    You can't all the wonderful fluid UI BlackBerry 10 If you keep changing the way the most basic element of this navigation works without informing the developers, and if you keep breaking formerly apps work whenever you bump the minor version number. This my BlackBerry, your grip on calls!

    greenmr wrote:

    OK, I solved it. For some reason, there are different ways to make calls, which is a good thing since when BlackBerry breaks one or more of them there are others that you can try. I rewrote my invocation to use explicit Invocation rather than through InvokeActionItem:

  • I can't connect even though I just checked my account via my email now Firefox says my password is wrong and Outlook does not receive the e-mail to reset

    I just downloaded Firefox and has been careful to choose a password that I can remember. I checked the account using my Outlook email. However, when I tried to browse the other themes following the link on the Firefox Customize page should I connect again. But the password was rejected so I tried to get it resets but can't get through by email. I tried again, same thing Outlook only Firefox check the message, even if it is more than half an hour. I have no idea of what is wrong, my Outlook email never took long to receive an email. Also, I don't understand how writing down and carefully put in password is rejected. What should I do? I can't delete Firefox and start over because I can't sign although I never pulled out. Thank you.

    "... when I tried to browse the other themes following the link on the Firefox Customize page should I connect again...". »

    The Addons.Mozilla.Org site uses a different record / separate and the login Support.Mozilla.Org to use (this Web site and the knowledge base). No problem in using the same username / email address and password on both, but you need to register for each one separately. and stay connected using separate cookies - as with two independent sites.

  • If I turn on iCloud local library, my library on my iMac remain intact and still receive new photos and videos as well?

    I was using iCloud library until I received a message that my storage was almost full on my iPhone and I could take is more new photos or video.  I wanted to delete the pictures and videos from my phone to free up storage space, but it is difficult or not delete my files on my phone would also result in their be removed from the library thus iCloud.  So I decided to disable iCloud photo library and uploaded to my iMac (as I was given 20 days to do so).

    I was under the impression that my local library of Photos on my iMac would always remain in tact and updated independently of the library to iCloud.  Isn't this true?

    All help on this subject never mention 'Download' and 'Download' to and from iCloud, but there is nothing that confirms my library local photos remain in tact and current.  Someone can it confirm please?

    I was under the impression that my local library of Photos on my iMac would always remain in tact and updated independently of the library to iCloud.  Isn't this true?

    It is provided that you activate the photo stream instead.

    but it is become difficult or not delete my files on my phone would also cause their be removed from the library thus iCloud.

    With iCloud library enabled, you cannot delete a photo on a device (or iCloud.com) without deleting each device which uses iCloud photo library (iCloud.com). In order to save space on your mobile devices (and indeed your Mac if you want to) turn on the optimization of the pictures on these devices (settings > photos & camera > optimize storage on your mobile device and Photo preferences > optimize storage on your Mac)

    Dynamic optimization, it reduces the resolution of your photos, if necessary, so that you don't notice it occurring initially. However, when necessary, it is very effective, and users have reported libraries being optimized for much less than 10% of their original size in some cases. My own library is about 9% of its original on my phone size.

  • I received calls from someone in India who said that they are Windows services centre telling me that they have received the error message saying that my computer is corrupted

    Original title: my computer is corrupt and needs fixing!

    I received calls from a person in India who said that they are Windows services centre telling me that they have received the error message saying that my computer is damaged, and they want to help me.  But I have not received any error message on my screen.  When I asked them how they got my number they said it's from the database of Windows. The number they gave me is 02921252715 and when I called the number of the person on the other end told me that they are a company called Windows e-solution, independent company and is not attached to Microsoft Windows.  What should I do?  Are these authentic calls and approved by Microsoft Windows?

    Hello

    Its a SCAM!

    Avoid scams to phone for tech support
    http://www.Microsoft.com/security/online-privacy/avoid-phone-scams.aspx

    In the United States, you can contact the FBI, Attorney general, the police authorities and consumer
    Watch groups. Arm yourself with knowledge.

    No, Microsoft wouldn't you not solicited. Or they would know if errors exist on your
    computer. So that's the fraud or scams to get your money or worse to steal your identity.

    Avoid scams that use the Microsoft name fraudulently - Microsoft is not unsolicited
    phone calls to help you fix your computer
    http://www.Microsoft.com/protect/fraud/phishing/msName.aspx

    Scams and hoaxes
    http://support.Microsoft.com/contactus/cu_sc_virsec_master?ws=support#tab3

    Microsoft Support Center consumer
    https://consumersecuritysupport.Microsoft.com/default.aspx?altbrand=true&SD=GN&ln=en-us&St=1&wfxredirect=1&gssnb=1

    Microsoft technical support
    http://support.Microsoft.com/contactus/?ws=support#TAB0

    Microsoft - contact technical support
    http://Windows.Microsoft.com/en-us/Windows/help/contact-support

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • I can't receive all my email on outlook express?

    I get all my emails.  Nothing has changed and they are commercial partners that ive had for years.  They can read mine, I can't get Thiers?  What can I do to restart or update, or even to check Outlook?

    Thank you

    GlenSB

    I moved your post on the forum that deals with Outlook Express.

    If you do not receive the messages from people, and they tell you that they sent them, there are two places to look.  The first is in your own mailbox.  You must determine if the messages are delivered, but Outlook Express just is not bring or if they are not reach your Inbox mailbox.  The first you can manage; the second is out of your control (but not, perhaps, independent of the will of the people, sending to you).

    If you use Outlook Express, you use a POP or IMAP account, since that's all what Outlook Express can handle.  The account type is probably POP.  If Outlook Express is not access your messages, then it is likely, they are not in the Inbox folder on the server side.  To check, log in your Inbox mailbox using a web browser.  Your mail service provider will be instructions to do this.  Examine the Inbox on the server.  If messages do not exist, Outlook Express cannot download them.  Many servers have a folder 'Spam' or 'Junk mail' in which they will place questionable messages.  Look in this folder to see if the messages that you think you should have gotten are there.  If you find them, move them to the Inbox on the server and the white list the addresses of your shippers on the server so that it will never divert these shippers again.  Suppliers of Help included pages have directions for that, too.

    If you do not see the messages that you receive, then your mailers must do some research because their messages do not reach your Inbox mailbox at all.  It's nothing, you can address; they will have to do.  Ask them if they receive non-delivery reports when they send you messages and know what these non-delivery reports.  If they get no notice of non-delivery has failed, they will have to register their providers of messaging services to help track down where the delivery will fail.

  • I received a call from Microsoft Security Department

    Hey! I received a call from someone that they are of the Microsoft Security Department. They told me to visit www.microsoftantiscam.webs.com/support and download a program called Ammyy admin. Is it legitimate or not? They told me that they were legitimate, showing me that they knew my computer number or something.

    Quick answerr please!

    Calls unrequested telephone of this nature are almost always a common scam. Do not let them give any info, do not give access to your PC, not give them all the money and do not go to all the websites that they suggest. One moment.

    Please see:

    http://www.Microsoft.com/en-GB/security/online-privacy/avoid-phone-scams.aspx

    Microsoft issues never not solicited for phone calls of support or security.

    These types of callers can use completely fictitious names or bogusly claim to be of real companies other than Microsoft as well.

    If you have given them access to your PC and then what you do will depend on the type of information you store on it, and how to use it. Personally, I would, at a minimum:

    ·        Change all passwords that may have been compromised. Doing this on another PC you can

    have been infected and send the new password to scammers.

    ·        Make a clean (including a format) install of Windows or restore the factory State. You will lose all

    data, so back to a separate drive. If you do not feel confident to do this to go

    professional/expert help.

    ·        Check the above return for viruses using at least two independent analysers of up-to-date antivirus.

    ·        Tell your bank, credit card companies, etc., what happened.

    ·        Watch for suspicious charges/payments on your credit cards and lodging.

    ·        Watch your e-mail accounts for any suspicious activity.

    ·        Consider to tell the local police / authorities.

  • Invocation allows you to share a file

    Everyone has understood how to share a file via the invocation in waterfalls? If I do an independent call I get the screen offering several targets of invocation, but after selecting one, the invocation closes just not sharing anything. It is possible that I am the uri incorrectly formatted, but any sample work with anyone would be appreciated.

    The MIME type is correct. But there is a mistake in your uri. You will need to construct your URIs in this way:

    "file://" + workingDir + "/shared/misc/fileName.html"
    

    You must use C++ code to get the working directory:

    QString workingDir = QDir::currentPath();
    

    Take a look at this article for more details:

    https://developer.BlackBerry.com/Cascades/documentation/device_platform/filesystem/index.html

  • 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");
    
  • Update the title bar or something when NFC Message received (HELP!)

    I send you a message using NFC. I want to update the title bar title whenever my application receives a message. Code does not work.

    I use the example of receiver NFC of GitHub with some modifications.

    Any ideas why it does not work? In addition, no idea where I would add code to trigger another method, as soon as the new payload is received?

    main.cpp

     

    /* Copyright (c) 2012, 2013  BlackBerry Limited.
    *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *
    * http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
    
    #include "NfcReceiver.hpp"
    
    #include 
    #include 
    #include 
    #include 
    
    #include 
    #include 
    
    using namespace bb::cascades;
    
    Q_DECL_EXPORT int main(int argc, char **argv)
    {
        Application app(argc, argv);
    
        // localization support
        QTranslator translator;
        const QString locale_string = QLocale().name();
        const QString filename = QString::fromLatin1("nfcreceiver_%1").arg(locale_string);
        if (translator.load(filename, "app/native/qm")) {
            app.installTranslator(&translator);
        }
    
    //! [0]
        NfcReceiver nfcReceiver;
    
        QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(&app);
        qml->setContextProperty("_nfcReceiver", &nfcReceiver);
    
    //! [0]
    
        AbstractPane *root = qml->createRootObject();
    
        //set objects
        TitleBar* tb = new TitleBar();
        tb = root->findChild("titleBar");
    
        Application::instance()->setScene(root);
    
        return Application::exec();
    }
    

    NfcReceiver.cpp

    /* Copyright (c) 2012, 2013  BlackBerry Limited.
    *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *
    * http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
    
    #include "NfcReceiver.hpp"
    
    #include 
    #include 
    #include 
    #include 
    
    //! [0]
    NfcReceiver::NfcReceiver(QObject *parent)
        : QObject(parent)
        , m_messageRecords(new bb::cascades::QVariantListDataModel()),
        //THIS PART BELOW. NOT SURE IF I AM DOING SOMETHING RIGHT OR WRONG NEED TO EXPOSE tb contextProperty to this class...
        tb(new bb::cascades::TitleBar())
    {
        m_messageRecords->setParent(this);
        tb->setParent(this);
    
        // Create an InvokeManager
        bb::system::InvokeManager *invokeManager = new bb::system::InvokeManager(this);
    
        /**
         * The signal invoked(const bb::system::InvokeRequest&) is used for applications.
         */
        bool ok = connect(invokeManager, SIGNAL(invoked(const bb::system::InvokeRequest&)),
                          this, SLOT(receivedInvokeTarget(const bb::system::InvokeRequest&)));
        Q_ASSERT(ok);
        Q_UNUSED(ok);
    
    }
    //! [0]
    
    //! [1]
    void NfcReceiver::receivedInvokeTarget(const bb::system::InvokeRequest& request)
    {
        // The data contains our NDEF message
        const QByteArray data = request.data();
    
        // Create out NDEF message
        const QtMobilitySubset::QNdefMessage ndefMessage = QtMobilitySubset::QNdefMessage::fromByteArray(data);
    
        // Fill the model with the single records
        m_messageRecords->clear();
    
        for (int i = 0; i < ndefMessage.size(); ++i) {
            const QtMobilitySubset::QNdefRecord record = ndefMessage.at(i);
    
            QVariantMap entry;
            entry["tnfType"] = record.typeNameFormat();
            entry["recordType"] = QString::fromLatin1(record.type());
            entry["payload"] = QString::fromLatin1(record.payload());
            entry["hexPayload"] = QString::fromLatin1(record.payload().toHex());
    
            m_messageRecords->append(entry);
    
        }
    
        emit messageReceived();
    
        //set titlebar title // this is failing... :(
        setTitle();
    
    }
    //! [1]
    
    bb::cascades::DataModel* NfcReceiver::messageRecords() const
    {
        return m_messageRecords;
    }
    
    void NfcReceiver::setTitle(){
        tb->setTitle("boo");
    }
    

     

    NfcReceiver.hpp

    /* Copyright (c) 2012, 2013  BlackBerry Limited.
    *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *
    * http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
    
    #ifndef NFCRECEIVER_HPP
    #define NFCRECEIVER_HPP
    
    #include 
    
    #include 
    #include 
    #include 
    #include 
    namespace bb { namespace cascades { class Application; }}
    
    /*!
     * @brief A helper class that encapsulates the code to receive a NDEF message.
     */
    class NfcReceiver : public QObject
    {
        Q_OBJECT
    
        // A property to make the received NDEF message records available to the UI
        Q_PROPERTY(bb::cascades::DataModel* messageRecords READ messageRecords CONSTANT)
    
    public:
        /**
         * Creates a new NFC receiver object.
         *
         * @param parent The parent object.
         */
        NfcReceiver(QObject *parent = 0);
    
    Q_SIGNALS:
        // This signal is emitted whenever a new NDEF message has been received
        void messageReceived();
    
    private Q_SLOTS:
        // This slot is invoked whenever the InvokeManager detects an invocation request for this application
        void receivedInvokeTarget(const bb::system::InvokeRequest& request);
        // SET TITLE
        Q_INVOKABLE void setTitle();
    private:
        // The accessor method of the property
        bb::cascades::DataModel* messageRecords() const;
    
        // The model that contains the records of the received NDEF message
        bb::cascades::QVariantListDataModel* m_messageRecords;
    
        //NOT SURE IF I AM EXPOSING THE TITLEBAR CORRECTLY HERE
        bb::cascades::TitleBar* tb;
    };
    
    #endif
    

    hand. QML

     

    /* Copyright (c) 2012, 2013  BlackBerry Limited.
    *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *
    * http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
    
    import bb.cascades 1.0
    
    Page {
        titleBar: TitleBar {
            id: t
            objectName: "titleBar"
            title: "awesome"
        }
        Container {
            layout: StackLayout {
                orientation: LayoutOrientation.TopToBottom
            }
    
            // The background image
           /* ImageView {
                horizontalAlignment: HorizontalAlignment.Fill
                verticalAlignment: VerticalAlignment.Fill
    
                imageSource: "asset:///images/background.png"
            }*/
    
            //! [0]
            // The list view that shows the records of the received NDEF message
            ListView {
                horizontalAlignment: HorizontalAlignment.Fill
                verticalAlignment: VerticalAlignment.Fill
    
                dataModel: _nfcReceiver.messageRecords
    
                listItemComponents: [
    
                    ListItemComponent {
    
                        type: ""
    
                        Container {
                            preferredWidth: 768
                            leftPadding: 10
                            rightPadding: 10
    
                            Field {
                                title: qsTr("tnf type")
                                value: ListItemData.tnfType == "0" ? qsTr("Empty Tag") :
                                       ListItemData.tnfType == "1" ? qsTr("Well Known Type") :
                                       ListItemData.tnfType == "2" ? qsTr("Media (MIME)") :
                                       ListItemData.tnfType == "3" ? qsTr("Uri") :
                                       ListItemData.tnfType == "4" ? qsTr("External") : ""
                            }
    
                            Field {
                                title: qsTr("record type")
                                value: ListItemData.recordType == "Sp" ? qsTr("Smart Poster") :
                                       ListItemData.recordType == "T" ? qsTr("Text") :
                                       ListItemData.recordType == "U" ? qsTr("Uri") :
                                       ListItemData.recordType == "Gc" ? qsTr("Generic Control") :
                                       ListItemData.recordType == "Hr" ? qsTr("Handover Request") :
                                       ListItemData.recordType == "Hs" ? qsTr("Handover Select") :
                                       ListItemData.recordType == "Hc" ? qsTr("Handover Carrier") :
                                       ListItemData.recordType == "Sig" ? qsTr("Signature") : ""
                            }
    
                            Field {
                                title: qsTr("payload")
                                value: ListItemData.payload
                            }
    
                            Field {
                                title: qsTr("hex")
                                value: ListItemData.hexPayload
                            }
                        }
                    }
                ]
            }//end listview
            Label{
                // I WANT TO GET THE PAYLOAD AND PARSE IT IN A CUSTOM WAY HERE....
                id: parsedText
                text: ""
                textStyle.fontSize: FontSize.XXLarge
                textStyle.color: Color.Black
    
            }
            //! [0]
        }
    }
    

     

    I'm just trying to help here. What does not work is I looked at your code and I looked at my code and I do not have a reference point on what parts do what...

    I want to respond in a tough manner and does not help when I'm obviously confused on the implementation and the instructions are not clear. The documentation is written for someone who has already worked with NFC and protocols, not beginners wishing to implement NFC functionality in the application.

    Based on this kind of response, I'll just leave NFC functionality out of my application.

  • BlackBerry 9630 Smartphones do not receive emails until the browser is open

    Hello

    I have developed a problem with my 9630 (carrier: Sprint) recently.  I get emails on this subject for a while, but once I open my Internet browser, all mails I've received since the last time that I opened it will come through at a time.  If I check my messages, they are all listed as coming through at the same time, but inside the email, they are dated at the time they were sent.

    Any ideas as to what it could be?  I have not changed the settings recently, the problem appears independent of anything else, from what I can tell.  Looks like a problem with my phone not seeking new emails until he uses data services (internet browser).  Thank you.

    Hi and welcome to the Forums!

    Each time a random strange behavior or slow creeps, the first thing to do is a battery pop reboot. With power ON, remove the hood back and remove the battery. Wait a minute, then replace the battery and cover. Power on and wait patiently through the long reboot - about 5 minutes. See if things return to functioning. Like all computing devices, BB suffers from memory leaks and others... with a hard reboot is the best remedy.

    Best!

  • HP Officejet Pro 8500 will not send or receive faxes

    HP Officejet Pro 8500 will not send or receive faxes. 'Run Test Fax' indicates that everything passes.

    Then see HP support pages for your model, its their equipment & the fax is independent of the victory

  • Call phone-received a phone call from a technician who said my system was sending error reports

    Today, I received a phone call from an Indian man who claims to be a technician. He said that my laptop has been sending error reports for the last 3 months. I had to call b - s because I had just my cell phone last month and it worked perfectly fine. He said that he was with universal Tech Support and when I asked him if he works with Microsoft somehow he said that his company works with Microsoft. I was really curious so I let the call and he told me to go to ammyy.com and run the software. I did and I let him have some light control on my laptop and I noticed that it wasn't really something that just move the mouse around the screen and he was not clicking on anything. He then said that my uTorrent was the question and I still called b - s. I installed it there, but I still have to download torrents. He said that my laptop has 4000 + error messages and they have been displayed on my screen. He decided to transfer me to his manager and that's when I hung up and restarted my laptop and run a full scan once more. What caught my attention, he was actually the registration # from my laptop and he repeated to me. The first time, they called the caller ID said "unknown name, unknown number." The second time they called a number actually popped up. (516-515-7279), I decided to give the number a call, and I didn't get any answer. I searched all over the internet and Ammyy scams pop up but all scammers are pretending be Microsoft certified technicians and I heard again scammers claim that they work with universal Tech Support. Now, I'm very curious to know whether or not Microsoft is doing a collaboration with this company.

    Hello NahDeeUhh,

    That's all just a scam

    Your PC regularly send error reports to Microsoft. This helps Microsoft determine what issues affect most users. During the transfer of these technical error reports information are transferred between your computer and the Microsoft server. NO personal data are transferred, so ask yourself "How did get my information?

    Any company (or individual) can get a database of potential customers, providing that they are willing to pay for this information. It may just be a voters list that could include your address and telephone number. Whatever list it's this list gives this company/individual details that they need to cold call you.

    Unless you have a contract to support prepaid with Microsoft, then Microsoft 'never' will call you about a problem with your machine. Yes there are Microsoft Certified Software engineers out there, but they do not work to make them work for companies that are independent of Microsoft.

    If you receive a similar appeal to new everything simply replace the telephone receiver and have no more to do with the appellant. Under no circumstances should allow you remote access to your PC. This is fatal. All they are after is your personal data such as password, coordinated and banking passwords etc.

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk | vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com

  • Unable to create the independent agent in ODI 12 c

    is it possible to create an autonomous in 12 c agent if I don't create the scheme of servicetable (_STB) by remote control?

    I get the following error when trying to create the independent agent.


    2015-10-01 15:47:27, 048 INFO [1] com.oracle.cie.wizard.internal.wcf.WCFWrapper - dominant summary_gui of task definition

    2015-10-01 15:47:49, 447 [14] INFO com.oracle.cie.domain.DomainRegistryWrapper - need to initialize the domainRegistrydocument object

    2015-10-01 15:49:28, 258 [14] INFO com.oracle.cie.domain.WLSTemplateBuilder - no config groups found in template xml

    2015-10-01 15:49:47, 063 com.oracle.cie.domain.AbstractTemplate INFO [14] - addition of the component reference

    "2015-10-01 15:49:47, 562 WARNING [14] com.oracle.cie.domain.AbstractTemplate - version of 'wlserver' component name ' 0.0.0.0 ' is not found

    2015-10-01 15:49:48, 233 [14] INFO com.oracle.cie.domain.WLSTemplateBuilder - no config groups found in template xml

    2015-10-01 15:49:48, 233 WARNING [14] com.oracle.cie.domain.AbstractTemplate - could not find component name 'oracle.data_integrator.standalone_agent_base' version 'null '.

    "2015-10-01 15:49:48, 248 WARNING [14] com.oracle.cie.domain.AbstractTemplate - version of 'odi' component name ' 0.0.0.0 ' is not found

    2015-10-01 15:49:48, 638 WARNING [14] com.oracle.cie.domain.AbstractTemplate - could not find component name 'oracle.data_integrator.datasources' version 'null '.

    "2015-10-01 15:49:48, 670 WARNING [14] com.oracle.cie.domain.AbstractTemplate - version of 'odi' component name ' 0.0.0.0 ' is not found

    2015-10-01 15:49:48, 701 com.oracle.cie.domain.AbstractTemplate INFO [14] - addition of the component reference

    2015-10-01 15:49:48, 826 [14] WARNING com.oracle.cie.domain.AbstractTemplate - could not find component name 'oracle.data_integrator.standalone_agent' version 'null '.

    2015-10-01 16:04:12, 655 WARNING [14] com.oracle.cie.domain.ohs.ConfigFileProcessor - admin.conf file does not exist...

    2015-10-01 16:04:12, 655 WARNING [14] com.oracle.cie.domain.ohs.ConfigFileProcessor - httpd.conf file does not exist...

    2015-10-01 16:04:12, 655 WARNING [14] com.oracle.cie.domain.ohs.ConfigFileProcessor - fichier.conf does not exist...

    2015-10-01 16:06:22, 917 SEVERE [59] com.oracle.cie.domain.DomainGeneratorStandAlone - domain creation failed!

    Location of area: C:\Oracle_Domain\Middleware\Oracle_Home\user_projects\domains\base_domain

    Reason: Did not contain the query table SERVICETABLE.

    ORA-00942: table or view does not exist

    Exception:

    Did not contain the query table SERVICETABLE.

    ORA-00942: table or view does not exist

    com.oracle.cie.servicetable.external.ServiceTableException: did not contain the query table SERVICETABLE.

    ORA-00942: table or view does not exist

    at com.oracle.cie.servicetable.dao.impl.AbstractServiceTableDAOImpl.getServiceTableEntry(AbstractServiceTableDAOImpl.java:295)

    at com.oracle.cie.servicetable.dao.impl.OracleServiceTableDAOImpl.getServiceTableEntry(OracleServiceTableDAOImpl.java:90)

    at com.oracle.cie.servicetable.impl.ServiceTableImpl.lookup(ServiceTableImpl.java:266)

    at com.oracle.cie.servicetable.impl.ServiceTableImpl.lookup(ServiceTableImpl.java:243)

    at com.oracle.cie.domain.ConfigMappingHelper.getService(ConfigMappingHelper.java:975)

    at com.oracle.cie.domain.ConfigMappingHelper.processNewServices(ConfigMappingHelper.java:610)

    at com.oracle.cie.domain.ConfigMappingHelper.processMappings(ConfigMappingHelper.java:410)

    at com.oracle.cie.domain.WLSConfigMappingHelper.processUpdate(WLSConfigMappingHelper.java:62)

    at com.oracle.cie.domain.DomainGeneratorStandAlone.run(DomainGeneratorStandAlone.java:588)

    at java.lang.Thread.run(Thread.java:745)

    Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1059)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:522)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:257)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:587)

    at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:210)

    at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:30)

    at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:762)

    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:925)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1111)

    at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1309)

    at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:422)

    at com.oracle.cie.servicetable.dao.impl.AbstractServiceTableDAOImpl.getServiceTableEntry(AbstractServiceTableDAOImpl.java:271)

    ... 9 more

    2015-10-01 16:07:04, 913 [14] INFO com.oracle.cie.common.util.BrowserLauncher - jdk used is: 1.7.0_79

    No, you must create all tables in service before

    https://docs.oracle.com/middleware/1212/odi/ODING/configure_sa.htm#ODING744,

Maybe you are looking for

  • Display driver last satellite S1950-S902

    Dear technical support specialists,Unfortunately, the Russian toshiba site in category 'pilot' I did not find a last model for Satellite S1950-S902 (Windows 2000) display driver with DirectX 9 .0cThis site offers me 3240 version but it's just mine ve

  • How to reset the password of bios mini hp?

    I bought a HP Mini 110-1212NR for my daughter a few years ago. She put it away after using it for a while because her boyfriend had a MAC and is now accompanied by wanting me a password before starting the system. Of course she has no idea, but it gi

  • strange characters

    I have a problem with a report created with Diadem 11.1.  The problem is when I use a comments box and fill it automatically get seats.  Is it possible to get rid of them and have represented as the characters they are supposed to be? i, e tabs, line

  • MX922 white duplex printing on the back of page 1

    When you print using duplex printing, the printer prints page 1, let white back, then prints page 2 at the last in duplex, as it should be. Seems a little odd, that if there is an odd number of pages, the test blank must be at the back of the last pa

  • I'm having a few bad experieces with free anti-virus download websites. Can anyone recommend a?, also I don't mined paying a quid off ebay or something like.

    I had experiences of somebad with especially anti-virus software downloads. Many of these sites are unscroupolous download software on your PC that offers a free scan and tells you your computer is riddled with viruses and then if you click on repair