App can be launched by Qt Creator only.
My application can be launched by Qt Creator after clicking the "Run".
After that, the application is deployed to the device with an icon can be seen in the menu.
But if I disconnect the device from PC and click the icon, the application wont be launched.
I've tried the application created by default. It can be launched by both method. Something must be wrong in my code, any clue?
Which device is it?
I'd start by checking the security settings of the application.
The device is N9.
Is that the security settings you mean qtc_packaging\debian_harmattan\manifest.aegis?
My application needs the following rights on Symbian
Allow network access on Symbian
symbian:TARGET.CAPABILITY += NetworkServices
But I can't find what is it on N9:
from "THIS":http://harmattan-dev.nokia.com/docs/library/html/guide/html/Developer_Library_Developing_for_Harmattan_Harmattan_security_Security_guide_Harmattan_APIs_that_require_credentials.html link.
I've removed all cpp files, now it can be launched by icon in app menu.
But adding the cpp files(no code do actually work), problem remains.
Then N9 isn't a Symbian device. As such, the Symbian Target Capabilities have no effect on deploying or running N9 apps.
[quote author="useryy" date="1332663400"]I've removed all cpp files, now it can be launched by icon in app menu.
But adding the cpp files(no code do actually work), problem remains.[/quote]
Hard to say what is causing that, but it sounds like it could be a bug in your C++ code causing application to crash at startup.