My application is a Qt Quick based app, and failed in QA of Store.
SUMMARY: The application opens multiple instances.
STEPS TO REPRODUCE:
1. Launch the application.
2. Suspend the application in the background.
3. Select the application icon again to relaunch the applicaiton.
ACTUAL RESULTS: A second instance of the application is launched.
EXPECTED RESULTS: There should only be one instance of the application, and focus should return to the application when selecting the icon for a 2nd time.
How to detect another instance in Qt enviroment?
--------------------------------------------------------------------------
Thanks every body!
I work it out,
Just need to modify XXX_harmattan.desktop file to "Exec=/usr/bin/invoker --type=d -s /opt/XXX/bin/XXX",
then the invoker will keep the application only one instance, and this method work ok only on N9 device, on the QEMU , it has no effect.
Please note, by using with invoker, the "main" function must be exported by "Q_DECL_EXPORT" instruction,
otherwise, the application can't be launched by touching the icon of desktop.
ref: http://developer.qt.nokia.com/wiki/S...n_Applications
:-D

Reply With Quote




