×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    8

    pausing j2me app when using platformrequest

    This is little urgent.

    My j2me app should call ivr system for capturing some information.
    I am using Platformrequest with phonenumber as argument.
    But when the IVR system is responding, my j2me app is still having the control and hence the input given from the mobile is not getting recognized inside IVR.
    Eve n i am calling noifyPaused but still..

    here is the code:
    midlet.notifyPaused();
    midlet.platformRequest("tel:" + number);

    Pl help me at the earliest.

    ~s~

  2. #2
    Registered User
    Join Date
    Jan 2009
    Location
    Bangalore, India
    Posts
    116

    Re: pausing j2me app when using platformrequest

    You mean to say that your midlet is not paused when you call platformRequest to call the number? Well, once the call is connected, midlet should be paused in background or need to be exited (for some Nokia s40 devices) until the call is over.

    If you want to get paused your midlet perfectly, please check whether the pauseApp method is called or not as in most of the devices pauseApp method is not called. If this is the case, override the hideNotify() method if your midlet uses canvas OR isShown for high level UI for handling the pause event.



    Thanks,
    Somendra

  3. #3
    Registered User
    Join Date
    Dec 2008
    Location
    New Delhi - India
    Posts
    3

    Re: pausing j2me app when using platformrequest

    Hi,
    This issue is there with S40 devices. You have to leave with that till Nokia fix the issue. Even if you call an IVR number from S40 phone then switch to menu or some other area of the device your IVR inputs will not be accepted.


    Thanks
    Pramod
    Pramod Kumar Samal
    Project Manager
    Phoneytunes.com
    New Delhi - India

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: pausing j2me app when using platformrequest

    Workaround can be to pass all required IVR inputs with the platform request itself from your app, dail some thing like this tel:55657p2p3

    If you want to want to select the IVR menu item 2 from first options and then item 3 from second and so on.

    Give those options directly from you app menu.
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

  5. #5
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: pausing j2me app when using platformrequest

    Quote Originally Posted by vempatisurya View Post
    This is little urgent.
    But when the IVR system is responding, my j2me app is still having the control and hence the input given from the mobile is not getting recognized inside IVR.
    Eve n i am calling noifyPaused but still..

    here is the code:
    midlet.notifyPaused();
    midlet.platformRequest("tel:" + number);

    Pl help me at the earliest.

    ~s~
    You must take the MIDlet life-cycle into account when you use platformRequest().

    1. Some MIDP platforms are more restricted than others. For example, some don't support concurrent processing, so the MIDlet must exit before the platform can honor a service request. Recall that platformRequest() returns true in such cases, giving your MIDlet fair warning that it must exit. This happens in the older S40 devices, and that is the OS implementation and hence neither you nor anyone else can help in this regard. If you are working for the latest Nokia S40 devices then this issue will auto get rid out of the light.

    2. If the platform request is to download and install an update of the currently loaded MIDlet suite, the currently running MIDlet is first terminated.

    In both these cases, the MIDlet must be prepared to exit gracefully, first managing its state so as to resume appropriately later.

    Some MIDP platforms (S60) are not so restricted and they allowed concurrent processing and hence in this case you need not to exit the MIDlet running and here your MIDlet will be paused. Again recall that platformRequest() returns false in such cases, giving your MIDlet fair information that you need not to exit the MIDlet.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. platformRequest("tel:+850..."); exiting app on Nokia 6280
    By hansamann in forum Mobile Java General
    Replies: 10
    Last Post: 2011-01-28, 12:26
  2. I want to load a complete web app on a j2me app
    By nkedare in forum Mobile Java Networking & Messaging & Security
    Replies: 6
    Last Post: 2010-03-01, 13:32
  3. initiate USSD call using J2ME PlatformRequest for Nokia
    By Sahrear in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2009-10-10, 16:51
  4. Problems Pausing audio In 6680 using j2me
    By youssefKarmoun in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2007-11-26, 11:08
  5. 6630 platformRequest(), app hangs.
    By Martin Valfridsson in forum Mobile Java General
    Replies: 6
    Last Post: 2005-10-06, 16:23

Posting Permissions

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