×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    13

    Application goes to bakground

    Hello,

    I am working on a J2ME application in which I am making a phone call from Midlet using
    Midlet.platformRequest("tel:" + phoneNo).
    Calling functionality works fine but while making call and after end call the application remains at a background.
    I want to make it display at foreground when the calls ends.
    Please suggest me some way to do that.

  2. #2
    Regular Contributor
    Join Date
    Sep 2007
    Location
    Thirunelveli
    Posts
    115

    Re: Application goes to bakground

    Hi smitasuhas,
    I think this is platform specific. for s40 midlet will be exited. for other series it will be running in the background. this cannot be avoided and bringing to foreground automatically is not possible

    Regards
    Senthil

  3. #3
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Application goes to bakground

    You might be able to bring a MIDlet to the foreground using:

    Code:
    Display.getDisplay(this).setCurrent(whateverDisplayableYouWant);
    This works on some devices, not others.

    However, you cannot determine when the phone call has ended. Even if you can bring the MIDlet to foreground, you won't know when to do it.

    As Senthil writes, this is Nokia's intended behaviour for the device.

    Cheers,
    Graham.

  4. #4
    Registered User
    Join Date
    Mar 2009
    Posts
    13

    Re: Application goes to bakground

    Thanks Graham and Senthil for your reply.

    I have tried the way Graham told me but still the application runs in background.
    I also tried the other way like my application is running -> I made a call from other mobile to the mobile(on which the application is running) -> after i end the call automatically my application came to foreground.
    So my question is who this happened?
    Do you know ant thing related to this?

    Thanks,
    Smita

  5. #5
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Application goes to bakground

    An incoming call is handled differently to an outgoing call.

    That's just what the device does. You cannot change this.

    Cheers,
    Graham.

  6. #6
    Registered User
    Join Date
    Mar 2009
    Posts
    13

    Re: Application goes to bakground

    Yes Graham I agree with you.
    I just want to know how that has been implemented, so that I can do something similar to that.
    Does any one know how incoming calls are handled to maintain state of the running application.

    Thanks,
    Smita

  7. #7
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Application goes to bakground

    It is implemented by the platform. The behaviour of your device is:

    * After an incoming call, focus is returned to the interrupted app.

    * After an outgoing call via platformRequest(), focus is not returned to the requesting application.

    You cannot change this.

  8. #8
    Registered User
    Join Date
    Mar 2009
    Posts
    13

    Re: Application goes to bakground

    Thanks grahamhughes.
    I agree with you.
    Is there any way to know when the outgoing call has ended or is there any other method than platformRequest() for outgoing call from J2ME application?

    Thanks,
    Smita

  9. #9
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Application goes to bakground

    You cannot determine when a call has ended.

    platformRequest() is the only way to initiate an outgoing call.

    Sorry, there really is no way around this problem.

Similar Threads

  1. AutoStart My application at bootup
    By prakashs in forum Symbian
    Replies: 7
    Last Post: 2009-03-24, 10:06
  2. Replies: 37
    Last Post: 2008-07-16, 05:17
  3. Replies: 4
    Last Post: 2008-07-15, 11:37
  4. Replies: 1
    Last Post: 2008-05-08, 12:32
  5. Replies: 0
    Last Post: 2005-05-28, 10: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
  •  
×