×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    49

    Perform an action upon launch of the application

    Dear All,

    I would like to do an action, e.g. get something from the Internet by HTTP, upon the start of the application.
    I put my code (HTTP Get) in the ConstructL function of the AppUI class. Yes it works. But the user experience is not good.
    Upon start, the application will make connection to the Internet. At this moment, the screen of the phone has NOT YET drawn the UI of the application and the application appears hang up. But when the HTTP return is got, the UI is drawn.

    I tried to put the code to the last sentence of the ConstructL function. Still the same happens.
    I want to know how I can solve it? That means the UI shows immediately, may be showing that the HTTP is in progress as well.
    Should I still put the code in the ConstructL function?


    Thanks.
    Hammond

  2. #2
    Registered User
    Join Date
    Aug 2004
    Location
    Hyderabad,India
    Posts
    808

    Re: Perform an action upon launch of the application

    Hi,

    May be u can try to put HTTP GET in container/View rather than in UI.

    BR,
    Sudhakar
    Regards,
    Sudhakar

  3. #3
    Registered User
    Join Date
    Nov 2006
    Location
    Bangalore
    Posts
    17

    Re: Perform an action upon launch of the application

    Hi hmleung,

    Why don't you try to use active objects here....reason is you can just submit the request and get back to your UI immediatly there by not freezing the UI and once the request is done you can handle the response in the RunL function.

    Hope this helps you out :-)
    Cheers
    Peru

Similar Threads

  1. Cannot launch application after installation
    By Gayathri Lokesh in forum General Development Questions
    Replies: 0
    Last Post: 2006-01-05, 14:00
  2. Error at application launch...Etel Client Faul - 28
    By yogesh14 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2005-12-14, 16:20
  3. Launch my application when recieve a sms
    By askoliver in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2003-10-10, 10:07
  4. Launch an JAVA application!!!
    By yaney in forum Mobile Java General
    Replies: 1
    Last Post: 2002-06-24, 13:24
  5. How to launch application from your own application
    By wonderland7 in forum Symbian
    Replies: 1
    Last Post: 2001-11-08, 18:44

Posting Permissions

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