×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Dec 2011
    Posts
    5

    Thumbs up [SOLVED] Background application and restoring like WhatsApp with QML

    Hi all,

    I've more than six months developing apps in Symbian ^3, and this is my first post here.

    I've tried some solutions, and searched in blogs, code, etc. I was waiting for code in projects.developer.nokia.com pages but I didn't see examples of this there.

    I need to do my app still running in background to show notifications. Then, for now my problem is minimize and restoring application.

    I've minimized (with Qt showMinimize viewer, but this only minimize that window, not app). Then when I use Open Apps menu to restore my app, this simply doesn't work. App appears like front app but it shows nothing because window is minimized (or hidden, if I use hide).

    Could you help me with some code for Symbian ^3/Anna?

    Thanks!
    Last edited by Chechesa; 2011-12-20 at 08:47. Reason: solved

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

    Re: Background application and restoring like WhatsApp with QML

    I also have faced the same issue with Qt api. So I used symbian code and it work smoothly.
    http://www.developer.nokia.com/Commu..._to_background
    http://www.developer.nokia.com/Commu..._to_background

  3. #3
    Registered User
    Join Date
    Dec 2011
    Posts
    5

    Lightbulb Re: Background application and restoring like WhatsApp with QML

    [SOLUTION]

    Thanks kkrish!

    I used second link as base. That code makes application can't close (background for ever and ever).

    After I did this (for reference to other users):

    Next reference allows configure minimize button (a method, it can be integrated to QML).

    Code:
    #include <QtDeclarative>
    #include <w32std.h>
    in .h of my C++ class (to be integrated with QML) and next line in body of method which will be called from QML (p.e. a C++ method which will be called in ToolButton for hide/minimize).

    Code:
    CCoeEnv::Static()->RootWin().SetOrdinalPosition(-1);
    In .pro add:

    Code:
    symbian { 
     
         LIBS += -lws32\
                 -lcone
     
    }
    Only for further reference I think it can be improved, but it's fully functional in Symbian Anna tested on E7-00

    Cheers!
    Last edited by Chechesa; 2012-01-26 at 20:18.

  4. #4
    Registered User
    Join Date
    Dec 2006
    Posts
    34

    Re: Background application and restoring like WhatsApp with QML

    cool.. but what will be the solution on MeeGo?

    -DJ

  5. #5
    Nokia Developer Moderator
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Background application and restoring like WhatsApp with QML

    MeeGo apps are Components basaed and they don't live in real windows because they live in a GraphicsView (aka QDeclarativeView).
    So you don't have this problem.

Similar Threads

  1. WhatsApp Inc! is looking for a Symbian S60 guru.
    By jankoum in forum News and Announcements
    Replies: 2
    Last Post: 2009-08-30, 10:19
  2. Restoring contacts to phone using PIM
    By nagesh.chetana in forum Mobile Java General
    Replies: 6
    Last Post: 2009-05-20, 11:41
  3. Replies: 0
    Last Post: 2005-05-11, 07:41
  4. Restoring settings
    By sebasttt in forum Digital Rights Management & Content Downloading
    Replies: 1
    Last Post: 2003-02-16, 08:22

Posting Permissions

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