×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Regular Contributor
    Join Date
    Jun 2006
    Posts
    78

    hide & unhide application

    hello
    please help me
    1. how hide my application
    2. how unhide this by press shorcut of this program
    3. how write a program that run once

  2. #2
    Regular Contributor
    Join Date
    Mar 2005
    Location
    Bangalore,India
    Posts
    306

    Re: hide & unhide application

    Do u mean putting the app in background/foreground?

  3. #3
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: hide & unhide application

    there is SendToBackground API.

    i hope this will help you.
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  4. #4
    Regular Contributor
    Join Date
    Jun 2006
    Posts
    78

    Re: hide & unhide application

    No
    I want when i choose hide menu in my application , My program hide (invisible) from task list and when i click on the shorcut of this (or press hotkey) unhide my application

  5. #5
    Regular Contributor
    Join Date
    Jun 2006
    Posts
    78

    Re: hide & unhide application

    please help

  6. #6
    Registered User
    Join Date
    Oct 2005
    Posts
    47

    Re: hide & unhide application

    Hello

    You can run following code on Hide menu of yours. This will take your app to background.

    void SendToBackground()
    {
    //Send To background
    RWsSession fSession;
    User::LeaveIfError(fSession.Connect());
    TApaTaskList aTaskList(fSession);
    TUid aUID;
    aUID = 0x10087981; //Uid of your application
    TApaTask aThisTask = aTaskList.FindApp(aUID);
    aThisTask.SendToBackground();
    fSession.Close();
    }

    Now invoking it through shortcut on phone's desktop will automatically bring this task to foreground

    use same code just use aThisTask.BringToForeground() instead of aThisTask.SendToBackground().

    You also alked about hiding it from task list. You can do it changing KAppHiden. (You can find numerous posts regarding it on forum).


    Hope this helps....

    Thanks & Regards
    Niilesh

  7. #7
    Registered User
    Join Date
    Jul 2005
    Location
    Bengaluru, India
    Posts
    747

    Re: hide & unhide application

    Quote Originally Posted by asdfghjkl_asdfghjkl
    No
    I want when i choose hide menu in my application , My program hide (invisible) from task list and when i click on the shorcut of this (or press hotkey) unhide my application
    This code may help you to hide your application from the task-list.

    Code:
    CEikonEnv::Static()->SetSystem( ETrue );
    Whatever explained by vniles is for making your application background/foreground.

  8. #8
    Regular Contributor
    Join Date
    Jun 2006
    Posts
    78

    Re: hide & unhide application

    Hi
    I can write a program that hide from task list but i want when i click shortcut of this program unhide my application.

  9. #9
    Registered User
    Join Date
    Jul 2005
    Location
    Bengaluru, India
    Posts
    747

    Re: hide & unhide application

    Quote Originally Posted by asdfghjkl_asdfghjkl
    Hi
    I can write a program that hide from task list but i want when i click shortcut of this program unhide my application.
    Use TApaTask::BringToForeground() for that.

  10. #10
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: hide & unhide application

    I'm using TApaTask for other purpose (killing external apps), but I have a big problem: which library should I include in MMP file??? UIQ 2.1 documentation says I need apgrfx.lib ... but there's no such a file in my whole Symbian folder, containing UIQ 2.0 and UIQ 2.1 SDKs!!!

  11. #11
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: hide & unhide application

    Quote Originally Posted by cassioli
    I'm using TApaTask for other purpose (killing external apps), but I have a big problem: which library should I include in MMP file??? UIQ 2.1 documentation says I need apgrfx.lib ... but there's no such a file in my whole Symbian folder, containing UIQ 2.0 and UIQ 2.1 SDKs!!!
    ops... nevermind, I mispelled the filename!!

Similar Threads

  1. Bringing application to foreground
    By ash_bhatia in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-11-02, 13:39
  2. Hide application from the tasks list
    By ramiqadi in forum Symbian User Interface
    Replies: 1
    Last Post: 2005-07-13, 04:41
  3. Replies: 0
    Last Post: 2005-05-28, 10:20
  4. Hide Application from task list
    By ekramulhuq in forum Symbian
    Replies: 0
    Last Post: 2003-10-13, 05:51
  5. Replies: 0
    Last Post: 2003-02-03, 08:08

Posting Permissions

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