×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    9

    Please help: Resuming application in the background

    I've created a chat client in flash lite that uses a xmlsocket to listen for messages.
    My problem is that when the application is sent to the background it is paused and can't listen for messages.

    How can I have it resume in the background?

    I read that from flash lite 3.1 you can have your app resume processing in the background if you make an asynchronous call to one or more Symbian Platform Services with a callback.

    Is there a way I could use this technique to get a notification of when the application is sent to the background or paused and use the callbackSettings.resumeOnEvent to resume processing?

    Is there any other way to solve this problem?

    My application is useless if it cant run and receive messages in the background.
    Any help with this issue appreciated! Thanks

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Re: Please help: Resuming application in the background

    Hi ,
    I also searched on this matter quite weeks ago but not able to find any solution to detect whether our application is in background or not or any event that get called once app go to background. Even in Flash Lite 3.1 the support of resuming in background is very limited. According to documentation :
    You can define callback settings only for asynchronous Service API methods that provide repeated callback events. These methods include:
    RequestNotification (Calendar Service API)
    Trace (Location Service API)
    RequestNotification (Logging Service API)
    RegisterNotification (Messaging Service API)
    RegisterForNotification (Sensor Service API)
    GetNotification (System Information Service API)
    Now, all of these APIs are not of use in your case. Ones best bet is to search in System Information Service API to find any such event but unfortunately, i am unable to find one. However, if you have to do it any cost then you have to choose Qt which doesn't have any such restriction.

    Best Regard,
    SajiSoft

Similar Threads

  1. Replies: 34
    Last Post: 2009-04-14, 13:47
  2. Resuming a background midlet application
    By yuenfatt in forum Symbian C++
    Replies: 0
    Last Post: 2009-02-23, 04:08
  3. Replies: 3
    Last Post: 2008-11-04, 17:55
  4. Replies: 1
    Last Post: 2008-07-17, 05:55
  5. application in background not running. Please help!
    By emadrazo in forum Symbian C++
    Replies: 0
    Last Post: 2007-11-27, 11:09

Posting Permissions

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