Problem with conversion of a normal app in app without head

"I made an example of code where you respond to messages (email, PIN) without user intervention is possible." The application is started and when a new message is received it respond and delete the new message.

I need the app to start as soon as the phone is started. This is why I want to convert an application without the app. But he is not able to link the API if I set them in the part without the app. The reason is that in the .pro file of the game without head cascades10 should be removed to make headless (it's just one of the requirements). I fully meet all other requirements too for example: no assets etc.

CONFIG += qt warn_on (cascades10) deleted

But I must add

LIBS +=-lbbpim which gives following error.

/usr/lib/libbbpim.so: reference to 'QSqlDatabase::rollback()' the undefined

/usr/lib/libbbpim.so: reference to 'QDomDocument::~QDomDocument()' the undefined

When I add cascades10 then it compiles, but now it does not entirely the requirements of the app without a head.

If I set the code part user interface of the application without a head, then it can compile and I can run the application. But in this case when I re - turn the phone on or off the UI of the application does not work.

I do not understand how to convert a normal app in app without a head. I have read the example and followed all the instructions.  http://developer.BlackBerry.com/native/documentation/Cascades/device_platform/headless_apps/

But I need for email, PIM messages. "How can you do it?

LIBS +=-lbb - lbbsystem - lbbplatform - lbbdata - lbbpim
QT += declarative sql
QT += xml

He then satisfied and I can run too

Tags: BlackBerry Developers

Similar Questions

  • Using C++ in QML classes in app without head: refers to 'bb::device:VibrationController:staticMetaObject' the undefined

    Hi, I've been weeks of work on the BB and had a lot of problems. Some of them have been resolved, some were not without the support of the forum.

    Now I have a great difficulty that I can't find answer by Googling.

    I am grateful to some body can help.

    Here's a simple case that make the big problem for me:

    1. create an app without head with Momentics. 2 project will be generated HeadlessApp and HeadlessAppService.

    Without modification, this code works well.

    2. I'm link below to use VibrationController in HeadlessAppService: https://developer.blackberry.com/native/documentation/dev/integrating_cpp_qml/index.html#usingcclass...

    below the code has been added:

    -Add codes below to main.cpp HeadlessAppService

    #include 
    using namespace bb::device;
    

    then add qmlRegisterType as below

    Q_DECL_EXPORT int main(int argc, char **argv)
    {
    
       Application app(argc, argv);
    
       qmlRegisterType("bb.vibrationController", 1, 0, "VibrationController");
       ApplicationUI appui;
       return Application::exec();
    }
    

    3. to confirm the new code, I just right click on the project and select build project.

    Bang! I got several error I don't understand. (red lines are errors)

    08:44:30 **** Incremental Build of configuration Device-Debug for project headlessTest ****
    make -j4 Device-Debug
    make -C .//translations -f Makefile update
    make[1]: Entering directory 'D:/BB-dev/momentics-workspace/headlessTest/translations'
    C:/bbndk/host_10_3_1_12/win32/x86/usr/bin/lupdate headlessTest.pro
    Updating 'headlessTest.ts'...
        Found 2 source text(s) (0 new and 2 already existing)
    make[1]: Leaving directory 'D:/BB-dev/momentics-workspace/headlessTest/translations'
    make -C .//translations -f Makefile release
    make[1]: Entering directory 'D:/BB-dev/momentics-workspace/headlessTest/translations'
    C:/bbndk/host_10_3_1_12/win32/x86/usr/bin/lrelease headlessTest.pro
    Updating 'D:/BB-dev/momentics-workspace/headlessTest/translations/headlessTest.qm'...
        Generated 0 translation(s) (0 finished and 0 unfinished)
        Ignored 2 untranslated source text(s)
    make[1]: Leaving directory 'D:/BB-dev/momentics-workspace/headlessTest/translations'
    make -C ./arm -f Makefile debug
    make[1]: Entering directory 'D:/BB-dev/momentics-workspace/headlessTest/arm'
    make -f Makefile.Debug
    make[2]: Entering directory 'D:/BB-dev/momentics-workspace/headlessTest/arm'
    qcc -Vgcc_ntoarmv7le -lang-c++ -Wl,-rpath-link,C:/bbndk/target_10_3_1_995/qnx6/armle-v7/lib -Wl,-rpath-link,C:/bbndk/target_10_3_1_995/qnx6/armle-v7/usr/lib -Wl,-rpath-link,C:/bbndk/target_10_3_1_995/qnx6/armle-v7/usr/lib/qt4/lib -Wl,-rpath-link,C:/bbndk/target_10_3_1_995/qnx6/armle-v7/usr/lib/qt4/lib -o o.le-v7-g/headlessTest o.le-v7-g/.obj/applicationui.o o.le-v7-g/.obj/main.o o.le-v7-g/.obj/moc_applicationui.o    -LC:/bbndk/target_10_3_1_995/qnx6/armle-v7/usr/lib/bb1 -LC:/bbndk/target_10_3_1_995/qnx6/armle-v7/lib -LC:/bbndk/target_10_3_1_995/qnx6/armle-v7/usr/lib -LC:/bbndk/target_10_3_1_995/qnx6/armle-v7/usr/lib/qt4/lib -LC:/bbndk/target_10_3_1_995/qnx6//usr/lib/qt4/lib -lbb -lbbsystem -lbbcascades -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lsqlite3 -lz -lQtXmlPatterns -lQtGui -lQtNetwork -lsocket -lQtCore -lm -lbps
    o.le-v7-g/.obj/main.o: In function `int qmlRegisterType(char const*, int, int, char const*)':
    c:/bbndk/target_10_3_1_995/qnx6/usr/include/qt4/QtDeclarative/qdeclarative.h:191: undefined reference to `bb::device::VibrationController::staticMetaObject'
    o.le-v7-g/.obj/main.o: In function `QDeclarativeElement':
    c:/bbndk/target_10_3_1_995/qnx6/usr/include/qt4/QtDeclarative/qdeclarativeprivate.h:87: undefined reference to `bb::device::VibrationController::VibrationController(QObject*)'
    o.le-v7-g/.obj/main.o:(.data.rel.ro._ZTVN19QDeclarativePrivate19QDeclarativeElementIN2bb6device19VibrationControllerEEE[_ZTVN19QDeclarativePrivate19QDeclarativeElementIN2bb6device19VibrationControllerEEE]+0x8): undefined reference to `bb::device::VibrationController::metaObject() const'
    o.le-v7-g/.obj/main.o:(.data.rel.ro._ZTVN19QDeclarativePrivate19QDeclarativeElementIN2bb6device19VibrationControllerEEE[_ZTVN19QDeclarativePrivate19QDeclarativeElementIN2bb6device19VibrationControllerEEE]+0xc): undefined reference to `bb::device::VibrationController::qt_metacast(char const*)'
    o.le-v7-g/.obj/main.o:(.data.rel.ro._ZTVN19QDeclarativePrivate19QDeclarativeElementIN2bb6device19VibrationControllerEEE[_ZTVN19QDeclarativePrivate19QDeclarativeElementIN2bb6device19VibrationControllerEEE]+0x10): undefined reference to `bb::device::VibrationController::qt_metacall(QMetaObject::Call, int, void**)'
    o.le-v7-g/.obj/main.o:(.data.rel.ro._ZTIN19QDeclarativePrivate19QDeclarativeElementIN2bb6device19VibrationControllerEEE[_ZTIN19QDeclarativePrivate19QDeclarativeElementIN2bb6device19VibrationControllerEEE]+0x8): undefined reference to `typeinfo for bb::device::VibrationController'
    o.le-v7-g/.obj/main.o: In function `~QDeclarativeElement':
    c:/bbndk/target_10_3_1_995/qnx6/usr/include/qt4/QtDeclarative/qdeclarativeprivate.h:91: undefined reference to `bb::device::VibrationController::~VibrationController()'
    c:/bbndk/target_10_3_1_995/qnx6/usr/include/qt4/QtDeclarative/qdeclarativeprivate.h:91: undefined reference to `bb::device::VibrationController::~VibrationController()'cc: C:/bbndk/host_10_3_1_12/win32/x86/usr/bin/ntoarm-ld caught signal 1
    Makefile.Debug:103: recipe for target 'o.le-v7-g/headlessTest' failed
    make[2]: *** [o.le-v7-g/headlessTest] Error 1make[2]: Leaving directory 'D:/BB-dev/momentics-workspace/headlessTest/arm'
    make[1]: *** [debug] Error 2
    Makefile:50: recipe for target 'debug' failed
    make: *** [Device-Debug] Error 2make[1]: Leaving directory 'D:/BB-dev/momentics-workspace/headlessTest/arm'
    mk/cs-base.mk:31: recipe for target 'Device-Debug' failed
    08:44:31 Build Finished (took 1s.47ms)
    

    I give up!

    Why adding simple code can be a problem? Please help me!

    Thank you very much!

    You must add this code into main.cpp to your HeadlessApp, not HeadlessAppService. Your spare part cannot run any UI stuff, trying to save an object any for QML is part of the things in the user interface.

    But anyway, reading your newspaper from the console, you seem to put in the right place anyway. Did you add this to your headlessTest.pro file:
    LIBS +=-lbbdevice

  • App without head

    Hello guys what changes do I need to change in the CPC or hpp files to convert my simple app in app without head
    I have already added

    LIBS += -lbbplatform
    

    in my .pro file and take a permission to Run in backround (_sys_run_headless) & (sys_headless_nonstop) also... bar - descriptor.xml

    I suggest that you either look at the example app without head or just start with that and add your own code.

  • App without head: how to check the status

    1. I read this on the BB site:

    Criticism

    Process that must be running at all times (for example, system processes)

    In the foreground

    Processes that are running in the foreground

    Background

    Processes that run in the background

    Stop

    Process involved in RAM without running

    The question is can we write the code to check the States of the app to trigger certain activities?

    I also want to know the other possible States of the life cycle such as: "application started", "closed app"...

    A problem critical of the app without head is memory management, and we can only until BB have a better explanation on the life cycle of the app without a head.

    2. for an application in the short-term, event after 20 years, the app is still listed on memory and CPU usage. That seems abnormal, because I guess that after 20 years, the application will be stopped and not be able to use the memory and CPU more.

    Can someone explain?

    Thank you very much!

    Would you like to take a look at this app, I wrote that has a component without head and uses QLocalSocket to communicate between the headless and the (https://github.com/blackberry/Cascades-Community-Samples/tree/master/wakemebybeacon) user interface process. There is also a blog explaining how it works here: http://devblog.blackberry.com/2014/07/wake-my-beacon/.

    You can detect changes in status of process on the part without head like this (https://github.com/blackberry/Cascades-Community-Samples/blob/master/wakemebybeacon/WakeMeByBeaconSe...) and manipulate them like this (https://github.com/blackberry/Cascades-Community-Samples/blob/master/wakemebybeacon/WakeMeByBeaconSe...).

    When a component without a head (process) is distributed will be passable for 20 seconds, after which it is moved to a queue where it receives no processor, but can be awakened (marked as executable) of certain classes of events. While stopped the headless process always retains a memory footprint, but is not available.

  • The App without head - account provider not found - release form is linked to the Blackberry ID

    Hello

    I tried to fill out the app without head permission to

    https://developer.BlackBerry.com/jam/headless/

    It gave me an error "not found the vendor account. Before, visit the provider Portal to create an account or link an existing account on the portal provider with this BlackBerry ID. »

    My account is already linked, and I am able to connect to the provider portal using my blackberry id.

    Please notify

    Worked ok now.

  • Citing the part of the user interface of the game without head in an app without head

    Hello

    I try to call my interface section user app without head of service class (part long term without a head), as shown below:

    application of BB::System:InvokeRequest;

    request.setTarget ("com.myDomain.myAppName");

    request.setAction ("com.myDomain.myAppName.START");

    InvokeTargetReply * response = m_invokeManager-> invoke (request);

    {if (Reply)}

    QObject::connect (response, SIGNAL (finished (()), this, SLOT (onInvokeResult ()));

    _invokeTargetReply = response;

    }

    else {}

    qDebug()< "failed="" to="" start="" invocation:="">

    }

    the error response is always "not objective". I double checked that the id of the target is my id app (user interface section) and that it is registered as target to call in the xml file bar


    application
    myAppName

    Icon.PNG

    myAppName

    I don't know why he keeps giving me the error response target?

    Made a typo, the Notification and NotificationDialog are part of the bb: platform.

    Here are their respective documents:
    Notification https://developer.blackberry.com/native/reference/cascades/bb__platform__notification.html#function-...

    NotificationDialog https://developer.blackberry.com/native/reference/cascades/bb__platform__notificationdialog.html#fun...

  • Problems with the installation of itunes "App can run on pc.

    Hello

    I have a question here

    I would like to install the latest version of itunes on my new PC (windows 10, 64-bit)

    When I click on the application of itunes6464.exe, my pc does not work, it gives an error message:

    "This application can run on your PC. To find a version of your PC, check with the software publisher"

    I tried to install it on my old pc windows 7, it shows me the same error message.

    I made sure to download the 64-bit version

    I tried to download the 32-bit version, it is recognized by my pc and try to install, but watch the message that my pc is 64-bit. What is quite normal.

    Thank you for your help

    If you have trouble downloading the installation file from iTunes to the current address try; Uncheck the box "Keep me updated", empty memory your browser cache, changing the settings of the blocker of pop-up, right click or ctrl - click on the download button, using a different browser, or by using the direct links here.

    See troubleshoot problems with iTunes for Windows updates if you have additional problems at the facility.

    TT2

  • I'm unable to access my Linksys router using Firefox browser version 9.0.1, but had no problem with knowledge is this normal or is there compatibility with Firefox problems?

    I am new to the Firefox browser and just tried to configure my Linksys router using Firefox and could not access my router, but had no problem with Internet Explorer. I was wondering is - this normal or there at - it set I can are wrong to use Firefox to fix my router?

    If you have the NoScript extension or other blocking JavaScript extensions (addons > Extensions), you must allow (or temporarily allow) the IP address of your router. Any particular setting should be held in Firefox itself.

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

  • Problem with the iPad using kindle app.

    WE have 2 iPads, iPad 3 and the air of aniPad. Nor are working using the kindle App freezes and looks like he's trying to download or open a book. Which of the two in the lower part shows also cloud and who is on the side of the unit?

    Amazon made the kindle app, not Apple.

    If you have problems with the app-contact Amazon Kindle.

    http://www.Amazon.com/GP/help/customer/display.html?nodeID=200298460

  • Problem with connecting to Windows normally

    OK, so I'm having a problem with a record in my laptop normally and the only way I can get to it is by going to safe mode.

    Basically what happens is that whenever I try to connect my computer normally (not in safe mode) I'll type in my password press enter it will come with the welcome sign and this small circle that tells it to load but it never is as if this drive does not work because the lamp flashes not or anything like that. However, it is very well whenever I login in safe mode and that the laptop came with windows vista on it that I don't have a copy of windows vista to try and slove the problem. This problem acerd after I restarted my laptop because it was slow and contributing generally to make it work properly again, but now this has happened and I don't know what to do.

    If someone could help me? I really need my laptop back to normal because right now, it's my only access to internet that not working I really on heavly for my college.

    Thank you for taking the time to read this and thanks for teying to help me.

    Hi Lexiey,

    A. recent changes made on your computer?

    B. you get any error message?

    You can start in safe mode, and then you put a computer to boot and then restart the computer in normal mode controls whether the issue persits.

    A clean boot helps eliminate software conflicts.  Let us check if software is causing the problem by following the clean boot procedure.  To perform the clean boot procedure, follow the instructions in the link below.

    Step 1: Perform a clean boot
    Step 2: Enable half the services
    Step 3: Determine whether the problem returns
    Step 4: Enable half of the startup items
    Step 5: Determine whether the problem returns
    Step 6: Resolve the problem
    Step 7: Reset the computer in normal mode and check if the problem persists.

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/kb/929135

    After checking the problem, turn the computer back to the Normal mode. Uninstall or update the program that is causing the problem.

    I hope this helps.

    Bindu S - Microsoft Support

    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • Problem with app without head

    I have an app without very simple head with a spare part which can be summed up like this:

    int main()

    {

    While (true)

    {

    appendToLogFile();

    Sleep (5);

    }

    }

    He manages to write twice in the logfile on Simulator 10.3 after the system starts and then it dies (nothing is printed, process went from "pidin").

    Is there something I need to do to ensure that the system does not not kill us after a few seconds?

    I have the following 2 lines in bar - descriptor.xml:

    _sys_run_headless

    _sys_headless_nostop

    I can zip from the project and set up somewhere if anyone wants. It is based on the project template that Momentics puts apps headless.

    TIA.

    I did some experiments. It seems that headless apps work pretty much as advertised during the development of a device but not very well at all in the development on the Simulator.

    Use a device to develop applications without head, not the Simulator.

    Perhaps future simulators will correct the current problems.

  • Problem with installing the game "no apps are installed to open this type of link try find at the store.

    Original title: problem with installing the game

    install a game but saying o\s

    No apps are installed to open this type of link try find in the store and when I opened store it for the app its available nt tried compatibility troubleshooting but no use it please help

    Hi harsh,

    For a better understanding of the issue, I would need more information on your side.

    1. What is the name of the game you install?

    2. where did you install the game from?

    3. What is the full error message?

    4. the question facing you while opening the store Windows or you are looking for an app? Have what compatibility troubleshooting steps you tried?

    To resolve the problem with applications, I suggest you try the procedure described in the article and see if it helps.

    Solve problems with a soft

    Please provide the necessary information to help you further, I'll be happy to help you.

  • Problem with the installation of the app

    Hi I have a problem with the application. I can't even open an appsince 2 weeks. I reinstalled cloud creative adobe 3 times and it still does not work.Capture.JPG

    Hi Anthony,.

    Please check the help below document:

    Download error in the applications tab of Creative Cloud Desktop Application

    You can also view the threads below:

    Persistent Cloud error - error download - creative

    Re: Creative Cloud "Download error" message

    Please let us know if it helps.

    Kind regards

    Shelly

  • Get a Push notification on app without head and application

    Hello

    I have included an app without a head for my current application, because I am handling becomes class PushService when push comes this application without a head. But I pushservice in running my application also to get called when comes to push, and my request for traffic not called when the push... How can I get push notifications in both without head and noraml app.

    You can take a look at the documentation
    https://developer.BlackBerry.com/native/documentation/Cascades/device_platform/headless_apps/

  • Problem with the EMU 9 and App volume 2.10

    I'm surprised that no one else has made the experience... but if you have 9 EMU with App volume 2.10 any stacked application that connects to an external system like vsphere client, Remote Desktop Manager, xming or similar opens but you get what looks like a firewall, dns on winsock error.   I tried the following while Troubleshooting which lead me to discover the EMU 9 > 2.10 AppVolumes question.  Do not forget that all the problems described were nonexistent before the upgrade to the EMU 9.

    1. create new vm of capture for the volumes of the app
    2. created piles of individual application for customer xming, DRC, termnals, vpshere
    3. created a desire unique appstack applications
    4. installed applications on the write-able volume with the same results
    5. remove all agents and install them in the correct order
    6. 9 removing MEU... Bingo appstacks work
    7. tested all combinations of the appstacks and they work all all users as EMU 9.0 is not installed.

    I don't have app blocking (its off by default) and I don't think that there are other settings in EMU who wanted to have that effect.  I also looked around and found no problem of compatibility between the EMU 9 and volume 2.10 on any doc App.

    I'm going to downgrade the agent of EMU on the endpoints to 8.7 and test

    finally found the issue...   KB https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2145681

    drove me crazy...

Maybe you are looking for

  • When my camera was added to my account

    Hi all Trying to find out when a particular device has been added to iCloud/AppleId When you look at the link "manage devices" (https://appleid.apple.com/account/manage) I can see the identity of the device and remove the device but cannot see when t

  • Firefox 22.0 can run on Mac 10.5.8 (Leopard) since it has code i386?

    Firefox 22.0 has 1386 code (such as x86_64), and the only difference in Info.plist is basically being instead of 10.5 10.6 as in Firefox 16.0.2 LSMinimumSystemVersion. So why can't Firefox 22.0 running Leopard (10.5.8) with simple changes to the Vers

  • failure of AFP in OSX 10.11.2

    I use a MacMini Server OSX (version 5.0.15) providing services of time machine backup to himself and two other MacBook Pro laptop computers running 10.11.2 and 10.10.X. Immediately after a server routine upgrade to 10.11.2, 10.11.1 AFP services seem

  • Ink advantage 3515: printing issues from ink advantage 3515 after a month of no use

    Hello everyone. I have problems with the print quality. In the summer, I installed the new HP original cartridges (black and color), a few printed pages and soon, I went to holiday - my printer has not been used or even turned on for about 5 weeks. A

  • Update for Windows XP (KB2443105) _ security

    Security update for Windows XP (KB2443105) continually update fails. No idea why?