Where this code should be called? If i call it in CAppUI::ConstuctL() then it always sets into background
What i want to do is: When my application is autostarted then i dont want to bring it on foreground but i want to bring it foreground when i start it myself.
solution given by you people works fine.but i m facing one problem,actually i want my application which ,is in active state to keep on listening for SMS's but runs in the background.This purpose is solved by the piece of code givn by you people. but what my application was previously doing is that if any sms comes fron unidentified number then it just move that message to drafts,but now i won't be able to open that messge. can anyone tell me what mught be the problem.
If the compiler complains with something like "undefined symbol", you are (still) missing some header files. If the linker complains with a cryptic line containing "@@", you need to add a library to your mmp. Can you post the *relevant* parts of the error messages here (not the whole lot, if you get a lot of messages)?
And I don't think Symbian programming is worth going crazy over it
Forum posts: 982
myTask.SetWgId(CEikonEnv::Static()->RootWin().Identifier());
myTask.SendToBackground();
pirosl
Forum posts: 3
Thanks for your reply.
Its a giving TARGET ERROR 1.
Can you pls tell me the reason behind this.
Regards,
Susovan
Forum posts: 982
Thanks for your reply.
Its a giving TARGET ERROR 1.
Can you pls tell me the reason behind this.
Regards,
Susovan
Can you be pls more explicit with this error? In which situation appears this error? On epoc? On device? What sdk are you using there?
pirosl
Forum posts: 3
It is coming while compiling the project. SDK version is 8.0a.
Thanks
Forum posts: 732
It is coming while compiling the project. SDK version is 8.0a.
Thanks
Please include the following library files in the MMP file:
LIBRARY ws32.lib
Then include the following header files to the CPP file:
#include <w32std.h>
I hope it will work fine after doing the above steps.
then it always sets into background
What i want to do is: When my application is autostarted then i dont want to bring it on foreground but i want to bring it foreground when i start it myself.
Is there any way? Thanks ahead!
TApaTask myTask(iEikonEnv->WsSession());
myTask.SetWgId(CEikonEnv::Static()->RootWin().Identifier());
myTask.SendToBackground();
Forum posts: 24
When your program is autostarted, u can call a funtion with that code. Just find out how to check if your program is autostarted or not.
Btw, is this code applicable for series 60?
Forum posts: 53
solution given by you people works fine.but i m facing one problem,actually i want my application which ,is in active state to keep on listening for SMS's but runs in the background.This purpose is solved by the piece of code givn by you people.
but what my application was previously doing is that if any sms comes fron unidentified number then it just move that message to drafts,but now i won't be able to open that messge.
can anyone tell me what mught be the problem.
thanx
Forum posts: 6
hi
i did same as u said, but always i get Undefined symbol
i included library in mmp file
also the 2 header files in the cpp.
same error occured
i will go crazy with it.
plz help
thnx
Forum posts: 1242
If the compiler complains with something like "undefined symbol", you are (still) missing some header files. If the linker complains with a cryptic line containing "@@", you need to add a library to your mmp. Can you post the *relevant* parts of the error messages here (not the whole lot, if you get a lot of messages)?
And I don't think Symbian programming is worth going crazy over it
René Brunner
Forum posts: 6
Thanx
I just created a new application and put same code, same headers, same libraries and it works. i don't know why
Anyway thanx