Hi, I'm currently developing an application which needs to startup automatically in the background and be able to be brought to the foreground when the user selects the icon in the apps menu.
My problem is selecting the app in the menu starts a second instance of the app, which is then sent automatically to the background.
My understanding from searching the forums is that deriving from CAknApplication and CAknDocument is supposed to prevent this, however I'm already using both. This isn't just my application, all the example programs I compile have the same problem.
Any suggestions at all would be appreciated.
A second question assuming I manage to get the first part fixed, is it possible to detect when my application is brought to the foreground so some code can then be executed?