×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    6

    HowTo make screen always be turn on

    Please, help!

    How can I make the screen on my series 60 mobile phone always be turn on? Which signals form an application should be sent (and how) and how to make an application run in background?

    I'm not a professional symbian programmer and I need only this trick.

    Thank you!

  2. #2
    Super Contributor
    Join Date
    Oct 2005
    Location
    Hyderabad,India
    Posts
    1,156

    Re: HowTo make screen always be turn on

    Quote Originally Posted by Irq
    How can I make the screen on my series 60 mobile phone always be turn on?
    Im not sure whether i understood the question properly.
    you could reset the inactivity time at regular intervals.(User::ResetInactivityTime() ). That might help you to keep the screen lights on always.
    Quote Originally Posted by Irq
    how to make an application run in background?
    Try this!

    Code:
    TApaTask task(iEikonEnv->WsSession());
    task.SetWgId(CEikonEnv::Static()->RootWin().Identifier());
    task.SendToBackground();
    Priju

  3. #3
    Registered User
    Join Date
    Jan 2006
    Posts
    6

    Unhappy Re: HowTo make screen always be turn on

    I have an error
    Undefined symbol: 'RWsSession::RWsSession(void) (??0RWsSession@@QAE@XZ)'
    referenced from 'void Cqui2AppUi::HandleCommandL(int) (?HandleCommandL@Cqui2AppUi@@EAEXH@Z)' in qui2AppUi.cpp:83

    when calling iEikonEnv->WsSession();

    I included file w32std.h with definition of class RWsSession, but this didn't help :-(

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,698

    Re: HowTo make screen always be turn on

    Quote Originally Posted by Irq
    Undefined symbol: 'RWsSession::RWsSession(void) (??0RWsSession@@QAE@XZ)'
    ...
    I included file w32std.h with definition of class RWsSession, but this didn't help :-(
    The class headers in .h files are declarations. Check the SDK Help to find out which library contains the definition of RWsSession.

  5. #5
    Registered User
    Join Date
    Jan 2006
    Posts
    6

    Unhappy Re: HowTo make screen always be turn on

    SDK help says that this is ws32.lib, but i don't know is there any need to attach this library? And how? ws32.lib exist in emulator (debug and release) folders.

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,698

    Re: HowTo make screen always be turn on

    Quote Originally Posted by Irq
    SDK help says that this is ws32.lib, but i don't know is there any need to attach this library?
    I just cannot decide it from here. If it disturbs you that your project does not build, you might try to add ws32.lib to your code, since it contains some definitions needed by you. However it might also happen that you are absolutely happy with your non-building code, in this case I think you should never add ws32.lib to your code.

  7. #7
    Registered User
    Join Date
    Jan 2006
    Posts
    6

    Question Re: HowTo make screen always be turn on

    No, you don't understand me properly :-) I meant I thank that after including the header, the library with implementation will be attached automatically.

    Of course, i need to add ws32.lib to my project, but i don't know how :-( So i ask it!

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,698

    Re: HowTo make screen always be turn on

    Quote Originally Posted by Irq
    I meant I thank that after including the header, the library with implementation will be attached automatically.
    No, it does not happen automatically.
    Of course, i need to add ws32.lib to my project, but i don't know how :-( So i ask it!
    It would have been better if you have mentioned which SDK and IDE you use.
    Anyway, if your project has a .mmp file (Visual Studio + 2nd edition, CodeWarrior with anything), you will find lines starting with "LIBRARY", that is the place where you can add ws32.lib (add a new LIBRARY-line, or write after an existing one). After that re-import your project (CodeWarrior: Project / Re-Import Symbian Project ..., VS+2nd ed: "bldmake bldfiles", "abld makefile vc6" - or vc7 - from a command prompt in the group folder).
    If you use Carbide.c++, you can add libraries in Project / Properties / C/C++ Build / Tool Settings / ... Linker / Libraries. Check the existing ones, and add ws32.lib. "..." means that you have to add ws32.lib separately to emulator and target configurations (for the emulator it is just typing the name, in case of target build, you should better copy an existing one - for example euser -, and modify that).
    If you are using Carbide.vs, you are out of luck, since I do not.

  9. #9
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Talking Re: HowTo make screen always be turn on

    In MMP file,
    add the following line:

    LIBRARY ws32.lib


    and compile the entire code again, this will solve your error.

    Also make sure that every time you modify the mmp file, you need to reload the project in Code Warrior or VC++ and then compile.
    Amit Kankani
    Nokia Developer Champion

Similar Threads

  1. How to build GCCE target
    By dsiorpaes in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2008-09-18, 06:54
  2. Make a list and query in one screen! (please help me...)
    By ctpthanh in forum Symbian User Interface
    Replies: 1
    Last Post: 2005-03-07, 09:22
  3. HowTo make screenshots on the 7650?
    By nbruech in forum Symbian
    Replies: 1
    Last Post: 2002-07-17, 22:15
  4. how to make a full screen window?
    By Nokia_Archive in forum Symbian User Interface
    Replies: 1
    Last Post: 2002-05-29, 15:30
  5. Replies: 2
    Last Post: 2002-05-13, 08:02

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×