HTTP access from a long running headless app

Hello

I have a requirement for an application that runs without head 24/7 and must sometimes make remote HTTP connections without user interaction.

Could you please tell me if this is possible thanks to an application without head and point me to the api correct?

Thank you

Ray

you don't know.
the api is the same as always, usually QNetworkAccessmanager etc.

Tags: BlackBerry Developers

Similar Questions

  • SystemDialog in long running headless app

    Hello

    10.3.1 I have a use case where I need to display a popup when a condition is met. The app may not run at the time when the condition could be filled.

    I looked at the following statement of the documentation

    «Apps headless supports dialog boxes at a later version of the SDK or API 10.3 level native BlackBerry 10.» Single system dialogs, such as SystemDialog, are supported. »

    on the page

    https://developer.BlackBerry.com/native/documentation/Cascades/device_platform/headless_apps/index.h...

    In this case, I modified the existing sample to take advantage of the SystemDialog but I don't see the dialog box when I installed the app (part of the user interface) since the outbreak in the part of the user interface for the headless is as follows. Any ideas?


    application.headless
    Reminder service
    ReminderService

    bb.action.system.STARTED
    application/vnd.blackberry.system.event.STARTED



    com.example.ReminderService.RESET
    *


    Here's the part without the project: service.hpp

    #ifndef SERVICE_H_
    #define SERVICE_H_

    #include
    #include
    #include

    bb {} namespace
    Application class;
    namespace System {}
    class InvokeManager;
    class InvokeRequest;
    }
    }

    Class service: public QObject
    {
    Q_OBJECT
    public:
    Service();
    Virtual ~ Service() {}

    public slots:
    void onDialogFinished (bb::system:ystemUiResult::Type type);

    private slots:
    void handleInvoke (const bb::system:InvokeRequest &);)
    void onTimeout().

    private:
    void triggerNotification();

    BB::System:InvokeManager * m_invokeManager;
    BB::System:ystemDialog * m_dialog;
    };

    #endif / * SERVICE_H_ * /.

    Here is the service.cpp

    #include "service.hpp".

    #include

    #include

    #include

    #include

    #include

    #include

    using namespace bb::system;

    Service:ervice():

    QObject(),

    m_invokeManager (new InvokeManager (this))

    {

    m_invokeManager-> connect (m_invokeManager, SIGNAL (called (const bb::system:InvokeRequest &)),)

    This, SLOT (handleInvoke (const bb::system:InvokeRequest &)));))

    m_dialog = new SystemDialog ("Save as", "Discard changes", "Cancel");

    m_dialog-> setTitle ("save changes");

    m_dialog-> setBody ("save your changes and close the document?");

    m_dialog-> setEmoticonsEnabled (true);

    m_dialog-> setModality (SystemUiModality::Global);

    Connect the finished() signal to the onDialogFinished() location.

    The slot will check the SystemUiResult to see which

    button has been operated.

    Boolean success = connect (m_dialog,

    SIGNAL (finished (bb::system:ystemUiResult::Type)).

    This,

    SLOT (onDialogFinished (bb::system:ystemUiResult::Type)));))

    If (success) {}

    Signal has been connected successfully.

    Now, display the dialog box in your user interface.

    onTimeout();

    } else {}

    Unable to connect to report.

    This is not normal in most cases and can be a critic

    situation for your application! Make sure you know exactly why

    What happened. Add code to retrieve from the

    interruption of the connection under this line.

    m_dialog-> deleteLater();

    }

    }

    cancel the Service:nDialogFinished (bb::system:ystemUiResult::Type type)

    {

    If (type is SystemUiResult::ConfirmButtonSelection)

    {

    qDebug()< "dialog="">

    The user accepts the dialogue.

    }

    else {}

    qDebug()< "dialog="">

    The user rejected the dialog box.

    m_dialog-> deleteLater();

    }

    }

    void Service::handleInvoke (const bb::system:InvokeRequest & request)

    {

    If (request.action () .compare ("com.example.ReminderService.RESET") == 0) {}

    triggerNotification();

    }

    }

    Sub Service: triggerNotification()

    {

    Time-out is to give time for the user interface to minimize

    QTimer::singleShot (2000, this, SLOT (onTimeout (()));

    }

    cancel the Service:nTimeout()

    {

    m_dialog-> show();

    }

    Join the discussion at
    http://supportforums.BlackBerry.com/T5/native-development/SystemDialog-in-headless-part-in-10-3/TD-p...

  • Long-term headless app work: QTcpSocket receive do not

    We have an app without long-term head that uses sockets for IPC.

    Headless part contains a QTcpServer, the user interface of the QTcpSocket.

    the code without a head:

    server = new QTcpServer(this);
    bool ok = connect(server, SIGNAL(newConnection()), this, SLOT(onNewConnection()));server->listen(QHostAddress::LocalHost, m_port);
    

    user interface code:

    bool stateOk = connect(clientSocket, SIGNAL(stateChanged(QAbstractSocket::SocketState)), this, SLOT(onStateChanged(QAbstractSocket::SocketState)));
    if (!clientSocket->isOpen()) {
        clientSocket->connectToHost(QHostAddress::LocalHost, m_port);
        bool conOk = connect(clientSocket, SIGNAL(connected()), this, SLOT(connected()));
        bool disconOk = connect(clientSocket, SIGNAL(disconnected()), this, SLOT(disconnected()));
        bool readReadOk = connect(clientSocket, SIGNAL(readyRead()), this, SLOT(commandReceived()));
        bool errorOk = connect(clientSocket, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(error(QAbstractSocket::SocketError)));
        Q_ASSERT(errorOk);
        qDebug() << "connected to server socket";
    }
    

    output debug shows headless headless app is running constantly, the signal is properly connected, the socket for the server returns isListening() to true.

    debug output of the user interface shows that all signals are correctly connected, and onStateChanged goes from HostLookupState to ConnectingState and finally to ConnectedState

    At this point, I'd wait the server socket to pull the signal of newConnection, but alas, it isn't.

    I generate and run the xandos example and it works correctly, but it does not long-term use and has the server in the user interface, while the part without head connects.

    I suspect that the app without head doesn't have an event loopand QTcpServer documentation states:

    Although QTcpServer is mostly designed for use with an event loop,it's possible to use it without one.In that case, you must use waitForNewConnection(),which blocks until either a connection is available or a timeout expires.
    

    Now I wonder:

    The long March without head app has an event loop?

    If this is not the case, how best to use the blocking call without disabling the rest of its features? A thread?

    Write that post little got me on the right track already, a problem merging caused the socket to the server must be started before you call the constructor of the Application (which provides the event loop).

    Now the server is running, receive a few orders, then she stops unexpectedly, the fires of the user interface
    QAbstractSocket::RemoteHostClosedError changes the State of ClosingState and UnconnectedState

  • Home Premium: Long delay when you open a network share from a computer running the full edition. sometimes 0 x 80070035 path network not found

    Moved here...

    Hello

    Since you have tried all possible troubleshooting steps which were necessary for the issue to resolved and still the problem persists, I recommend you post the question in the Technet Forums.

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the link below.
    Windows 7 IT Pro category

  • HTTP requests from 3rd party app on BlackBerry consumer

    We have an application that performs a lot of (not through the browser) HTTP requests. Our internal testing is done on devices activated per BES. I've heard reports occasional external users that communications is a failure and I guess that carriers are restricting certain types of HTTP requests. (Also, I see that Viigo has download separately for consumer and Enterprise devices).

    I got the impression that HTTP requests are OK as long as they were not on the user interface thread. Can someone point me to a single set of rules or practices for HTTP requests from applications 3rd party on consumer phones?

    See you soon,.

    Tom

    Please see this link for a list of the available routes to make a connection over HTTP.

    What - in different ways to establish an HTTP connection or socket
    Article number: DB-00396

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

  • Reinstal Cloud but not uninstal not possible as long as the app running, but not other applications in the Task Manager

    Hello

    I need to reinstall the Cloud but uninstal is not possible as long as the app running, but not other applications in the Task Manager.

    Windows 7

    Uninstaller: "another version of office of creative cloud or an installer Adobe is running...". »

    TaskManager: browser runs only.

    Windows Installer / change: "unable to désinstaller creative cloud to desktop. You still have creative Cloud computer applications that need it.

    So, how I re install this, thank you

    Safe mode using the application of Creative Cloud Uninstaller has worked.

  • Disable the input from the user during the long running process

    Hello

    I use JDev 11.1.1.4.0.

    When the user clicks on the 'save' button, I have to call a procedure stored prior to validation. This procedure takes about a minute to complete the race. My problem is, while the process is running, the user can click or change the values in the page. Is there a way to lock the page until the process is complete and ok to return control over the user?

    Thank you

    Bones Jones

    Another example:
    http://www.gebs.ro/blog/Oracle/Oracle-ADF-glass-pane-for-blocking-user-input-in-case-of-long-running-tasks/

    Thank you
    Nini

  • Error 1606 could not access work net location of data %/app %

    Error 1606 could not access work net location of data %/app % when I tried to down load soft ware for the adobe acrobat reader software.  has tried to download it again got new error message, this installation package could not be open, check the package exists and that you can access.  It is a free software from adobe.

    This problem occurs because there is incorrect entries in the Shell folder of the user who is logged on to Microsoft Windows. When Windows Installer goes to the sale of Shell folder of the user who is logged on to the computer, Windows Installer cannot locate the correct entry. The solution is inhttp://support.microsoft.com/default.aspx/kb/886549.

    The steps to correct this problem involve editing the Windows registry.  Change the settings of the REGISTRY can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the REGISTRY settings configuration can be solved. Changes to these settings are at your own risk. I suggest that you first back up your registry as follows: http://windows.microsoft.com/en-US/windows-vista/Back-up-the-registry.

    Here are the steps to fix it.

    1. click on start, run, typeregedit in the Open box, and then click OK.

    2. look for the following registry key:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell dossiers\

    3 remove the entries that show the path that is listed in the error message.

    886549 KBhttp://support.microsoft.com/default.aspx/kb/886549: Regedit open again. In the left pane, click User Shell Folders, point tonew, click expandable string value, type the value name that you want to restore (AppData) and then press ENTER. Right click on this value, clickchange, type the value in the value data for the value name box, and then clickOK. The value data must be: % USERPROFILE%\AppData\Roaming.

    Step 8 KB 886549 suggests that you also check the values in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders. However, by fixing my problem, I had not to change values in the registry key. If this does not work, follow ALL the steps in the referenced article.

    Good luck.

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • ACS5.3: stopped working https access

    For some reason I can't get more access to the web interface of our ACS 5.3 apparatus.

    Where I used to get a certificate warning first, and after that the ACS5 login screen, I now get totally unanswered more in my IE browser.

    However, I can telnet to port 443 of the unit.  And I (luckily) always ssh access the unit.  So I did a reload (sorry, microsoft patterns), but that will not solve anything.

    HTTPS access to other systems of the same browser works very well

    =================================

    Admin # sh ver

    Deploying applications engine Cisco OS version: 1.2
    ADE-OS Build Version: 1.2.0.228
    ADE-OS System Architecture: i386

    Copyright (c) 2005-2009 by Cisco Systems, Inc.
    All rights reserved.
    HostName:

    Version information for the installed applications
    ---------------------------------------------

    Cisco ACS VERSION INFORMATION
    -----------------------------
    Version: 5.3.0.40.8
    The identifier for the internal version: B.839
    Patches:
    5-3-0-40-5
    5-3-0-40-8

    =================================

    What version of IE are you using? A newer version of Internet Explorer, you cannot open secured pages that have less force encryption.

    Have you tried another browser? In case it works well with firefox or google chrome follow it please the below listed as follows:

    There could be a possibility that you have downloaded and applied some update Windows on your machine and that could have changed the level of encryption of minRSAPubKeyBitLength REG_DWORD 512 to higher values.

    The command listed below will set the registry to 512

    Go to the PC from which you access ACS > start > run > cmd > run the below listed order

    C:\Users\Employees>certutil - setreg chain\minRSAPubKeyBitLength 512

    Once you have finished, try again and let us know.

    Jatin kone
    Kind regards

    -Does the rate of useful messages-

  • IM related to Adobe Creative Cloud, but I can't connect. When I run the apps, said that I did not. License does not work

    IM related to Adobe Creative Cloud, but I can't connect. When I run the apps, says that I don't have license, license does not work.

    Your subscription to cloud shows correctly on your account page?

    If you have more than one email, you will be sure that you use the right Adobe ID?

    https://www.adobe.com/account.html for subscriptions on your page from Adobe

    .

    If Yes

    Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud

    -Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html

    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html

    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp

    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html

    .

    If no

    This is an open forum, Adobe support... you need Adobe personnel to help

    Adobe contact information - http://helpx.adobe.com/contact.html

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    -Select your product and what you need help with

    -Click on the blue box "still need help? Contact us. "

  • LDAP and APEX for access from home

    I am new to LDAP and only familiar with concepts so bear with me. I would like to know if I can use LDAP with an APEX application so that employees can access the LAN/intranet working system as well from home (or anywhere on the internet). They have access to the intranet via the LAN by signing on the use of their Novell username and password. I'm assuming that they can connect to the House using the same Novell username and password. (BTW-I don't want to set up APEX user ID or database user ID for users of 1800-1900). This can be accomplished? If so, how?

    I have a meeting with the vice-principal of the week next to discuss this project which it can manage access from the internet.


    Thank you in advance.

    Robert
    http://apexjscss.blogspot.com

    Hi Robert,.

    Yes, he is indifferent to the APEX where a user comes from. As I mentioned above, authentication is performed in the database by data that shows through the front. As long as the front-end server reaches the end back, your users can connect.
    The onlyl restriction that can be there is the Novell (LDAP) server not accepting does not request to the database server. But if you have LDAP works on your APEX for a LAN/WAN access, he will work with the reverse proxy as well.

    -Udo

  • HTTPS access to the router does not work with Firefox 33.0

    HTTPS access to the router Linksys wrt610n has worked so that Firefox 32.0.3 the dd - wrt software of this router is self-signed certificate with the public key RSA = 512 bits (Yes, it's too short today). From Firefox 33.0 and whose 34, 35, 36-access https does not work. It is desirable to restore https behavior as in Firefox 32.0.3 (with warning and ability to do security exception). Please see the attachment with a https query result in different versions of Firefox.
    Thank you.

    Hello, make suggestions to the https://support.mozilla.org/en-US/questions/1038487 help in your case?

  • My HP Pavilion dv9000 can access is no longer in his DVD player, (e); can anyone help?

    My HP Pavilion dv9000 can access is no longer in his DVD player, (e); can anyone help?

    Hello

    Try to perform the clean boot and check if it helps:

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

    NOTE: When you are finished troubleshooting, make sure that restore you the computer mode normal startup such as suggested in step 7 of the above article.

  • After updates, access samba no longer works.

    After Windows update has installed a security update: KB2536276, I can't access shares samba (Version 1.9)

    I can access is no longer shared Unix via- or already drives mapped.

    Errors:
    "Year error occurred while reconnecting to <\\name\share>.
    "Microsoft Windows network: the local device name is already in use.
    "The connection has not been restored."

    and

    "The mapped network drive could not be created because the following error has occurred."
    "The specified server cannot perform the requested operation".

    I found that with Samba version 1.9.16(c), the KB2536276 of broken Windows communication with Samba security update.

    The temporary solution was to uninstall the update... the more permanent solution was upgraded to Samba to version 3.x.x

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

  • How to stop a script of long-run, or leave in the first place?

    How to stop a longrunning script to stop or start in the first place. It does in itself. I don't know what it is. The only reason for which we know that it is running is because from time to time, we get a box popping up to say something like "this can't start/work due to a long-running script. Is this something that is important for our computor or is she something harmful, or simply unnecessary?

    Hi Anna-KarinEdvardsson,

    1 did you change on your computer before the show?

    2 are. what scripts you referring?

    3. when exactly the script starts?

    I suggest you to set the computer to clean boot and check how it works.

    To configure the computer clean boot, follow the steps in the below link:

    How to perform a clean boot

    Note: After the installation of updates to the clean boot follow step: 7 article to reset your computer to normal startup.

Maybe you are looking for