×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Jul 2005
    Posts
    79

    Making a call while application is running.

    Hi all,

    Could any one please help me???

    i am working on a j2me application.
    let me explain it. There is a thread that creates an http connection and so connects to the server, server in turn if gets updated information returns as the response to the J2me client application.

    That response ultimately gets displayed as an alert on the handset screen.

    This is the reason, We need to keep it on.
    Using this way basically i am getting the updated information from the server and displaying Alert to the user.

    Now the problem for users is : They are not able to make a call while the application is on.

    I have explored forum.nokia fully. and have found there could be a way by using platformRequest(String url).

    It will be very helpfull to me if somebody can tell me, how can i implement this method so that user can make a call while application is running on the handset?

    Thanks.

  2. #2
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: Making a call while application is running.

    Hi aminuddin09,

    Check this link for tips on how to use MIDlet.PlatformRequest(String url).

    Invoking Platform Services in MIDP 2.0
    http://developers.sun.com/techtopics...est/index.html

    BR

  3. #3
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: Making a call while application is running.

    the first question is : what is your target terminal ?
    if it is a s40 1st or 2nd, indeed you can't do much thing while the application is running, and you'll probably need some trick with a platformRequest.
    however, if the target is a s60 or a s40 3rd (i think), then you can call for instance
    Display.getDisplay(myMidlet).setCurrent(null);
    then the user can do (afaik) about whatever he wants.
    then, a call to
    Display.getDisplay(myMidlet).setCurrent(myDisplayable);
    will make the app come back to front asap.

    yet, this may not always work, i'm not quite sure what are the possible things a user can do when the app is running this way. so you can also try to call a
    notifyPaused();
    which will push the app to the background, allowing it to perform limited tasks (haven't found the limit yet).
    then, when your data is ready, call
    resumeRequest();
    and you startApp(); will be called by the os, allowing you to display your info

  4. #4
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: Making a call while application is running.

    then you might try again ...

  5. #5
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: Making a call while application is running.

    Hi,

    Today was a busy one...sorry for not replying promptly. Well, I've just checked and the link is not broken, so try again.

    BR

Similar Threads

  1. Replies: 4
    Last Post: 2005-09-01, 13:47
  2. Replies: 1
    Last Post: 2005-08-30, 10:17
  3. Uninstalling a running application results in an error
    By Il_Maestro in forum Symbian Tools & SDKs
    Replies: 6
    Last Post: 2005-07-13, 09:14
  4. .SIS killing a running application?
    By dchiaramello in forum Symbian
    Replies: 0
    Last Post: 2003-09-24, 16:31
  5. When running a java application phone does not ring
    By TelTrak in forum Mobile Java General
    Replies: 0
    Last Post: 2003-08-15, 11:20

Posting Permissions

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