×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    6

    platformRequest("tel:+850..."); exiting app on Nokia 6280

    Hi there,

    we got a massive problem with platformRequests that should call a phone number. As we use S40 Nokia6280 we are fine with starting the call once the app exited, but in our case the app exits and nothing happens... instead we quickly see a "connection screen" coming up and then disappearing immediately. So it seems the call is tried, but somehow it exits right after that.

    The same code works fine on a 6680 for example and numerous other phones.

    Are there any known issues?

    Nokia 6280
    Firmware v. 03.81
    09-05-06

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

    Re: platformRequest("tel:+850..."); exiting app on Nokia 6280

    Hi hansamann,

    Check:

    Forum Nokia Technical Library v1.30

    http://www.forum.nokia.com/info/sw.n...30_en.chm.html

    There are two issues concerning platformRequest (KIJ000074 and KIJ000342).

    One says:

    "...starting a voice call works immediately without exiting the application."

    The other:

    "According to the MIDP 2.0 specification the platformRequest() method should return true if the MIDlet suite must exit before the content can be fetched.
    In the Nokia 6280 this method returns true but it does not notify the user that the MIDlet has to be closed. Create an Alert screen saying that the user should close the MIDlet first.
    After the MIDlet has been closed the user will get a notification for the requested network operation. For example: "Do you want to go to the Web address http://www.google.com"."


    Hum...it doesn't seem to be your case but may help.

    Juarez Junior
    Juarez Alvares Barbosa Junior - Brazil

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    6

    Re: platformRequest("tel:+850..."); exiting app on Nokia 6280

    Thanx for your reply, right, neither of the posts help me.

    We are now trying to hunt that bug. I created a really simple Midlet, that just creates a platformRequest and tries to call, then exits immediately:

    public class Dummy6280 extends MIDlet
    {

    public Dummy6280()
    {

    }

    protected void startApp() throws MIDletStateChangeException
    {
    System.out.println("will call now");
    boolean possible = false;
    try
    {
    possible = this.platformRequest("tel:+491723844659");
    } catch (ConnectionNotFoundException e)
    {
    Alert alert = new Alert(e.getMessage());
    Display.getDisplay(this).setCurrent(alert, Display.getDisplay(this).getCurrent());

    }

    Alert alert = new Alert("it's " + possible);
    Display.getDisplay(this).setCurrent(alert, Display.getDisplay(this).getCurrent());
    //this.notifyDestroyed();
    }

    protected void pauseApp()
    {
    }

    protected void destroyApp(boolean arg0) throws MIDletStateChangeException
    {
    }

    }

    This is just a quick shot at it. If I run this in the 6280, the app quits and nothing happens. For a tenth of a second I can see a "connection" screen, trying to call, but then that's it...

    Any idea?

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

    Re: platformRequest("tel:+850..."); exiting app on Nokia 6280

    Hi hansaman,

    "possible = this.platformRequest("tel:+491723844659");"
    What's is the value of possible variable? From the Javadocs:

    true - if the MIDlet suite MUST first exit before the content can be fetched.

    Juarez Junior
    Juarez Alvares Barbosa Junior - Brazil

  5. #5
    Registered User
    Join Date
    Oct 2006
    Posts
    6

    Re: platformRequest("tel:+850..."); exiting app on Nokia 6280

    Hi Juarez,

    the value is false :-)

    But we were able to hunt down the problem now.

    The funny thing: if you don't call notfiyDestroyed() it works, otherwise it quits immediately and shuts down the phone call.

    As notifyDestroyed() is recommended to call (see MIDP2 Standard), we cannot remove this.

    ---

    We discovered another strange behaviour. If the Midlet that executes the tel: platformrequest is part of a Suite with 2 or more midlets, it works, too! Now this is really strange. Unfortunately this is not a solution because we don't want our customers to choose at the beginning between two (same) MIDlets just to work aroudn this problem.

    Could you please tell me if there are some differences in resource handling / invocation of native components if the MIDlet is part of a suite?

    I just found out that after a MIDlet, which is part of a let's say 2 MIDlet suite, is exited, you still see the screen where you can choose between the midlets in this suite. Only after you press quit or exit, you really seem to have quit completely from the suite.

    (this is different on a 6680, here simply all midlets are shown right in the menu)

    Cheers\
    Sven

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

    Re: platformRequest("tel:+850..."); exiting app on Nokia 6280

    Hi Sven,

    It's great to know that you've isolated the problem, but unfortunately it seems to be a bug to me, very interesting (and strange) scenarios. I advise you to report those problems along with your complete source code so that the Nokia Experts can evaluate and possibly report them to the right teams at Nokia. Perhaps you can use the "Known Issues" section here at FN.

    Juarez Junior
    Juarez Alvares Barbosa Junior - Brazil

  7. #7
    Registered User
    Join Date
    Oct 2006
    Posts
    6

    Re: platformRequest("tel:+850..."); exiting app on Nokia 6280

    Thank you. I will report the problem. Can you give me the direct URL?

  8. #8
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,699

    Re: platformRequest("tel:+850..."); exiting app on Nokia 6280

    just a note: Sven already posted notice on "known issues" section:
    http://discussion.forum.nokia.com/fo...ad.php?t=84605
    regards,
    PEter

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

    Re: platformRequest("tel:+850..."); exiting app on Nokia 6280

    Thanks Peter

    Juarez Jr
    Juarez Alvares Barbosa Junior - Brazil

  10. #10
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,699

    Smile Re: platformRequest("tel:+850..."); exiting app on Nokia 6280

    hi Juarez!
    just keeping things up-to-date
    regards,
    Peter

  11. #11
    Registered User
    Join Date
    Jan 2011
    Posts
    4

    Re: platformRequest("tel:+850..."); exiting app on Nokia 6280

    Quote Originally Posted by hansamann View Post
    Thanx for your reply, right, neither of the posts help me.

    We are now trying to hunt that bug. I created a really simple Midlet, that just creates a platformRequest and tries to call, then exits immediately:

    public class Dummy6280 extends MIDlet
    {

    public Dummy6280()
    {

    }

    protected void startApp() throws MIDletStateChangeException
    {
    System.out.println("will call now");
    boolean possible = false;
    try
    {
    possible = this.platformRequest("tel:+491723844659");
    } catch (ConnectionNotFoundException e)
    {
    Alert alert = new Alert(e.getMessage());
    Display.getDisplay(this).setCurrent(alert, Display.getDisplay(this).getCurrent());

    }

    Alert alert = new Alert("it's " + possible);
    Display.getDisplay(this).setCurrent(alert, Display.getDisplay(this).getCurrent());
    //this.notifyDestroyed();
    }

    protected void pauseApp()
    {
    }

    protected void destroyApp(boolean arg0) throws MIDletStateChangeException
    {
    }

    }

    This is just a quick shot at it. If I run this in the 6280, the app quits and nothing happens. For a tenth of a second I can see a "connection" screen, trying to call, but then that's it...

    Any idea?



    when I compile this code, i can get error at this line

    possible = this.platformRequest("tel:+491723844659");

    whats the problem and how to sove it ?

Similar Threads

  1. ###Upgrading Firmware###
    By zahid44 in forum General Development Questions
    Replies: 27
    Last Post: 2008-10-21, 07:17
  2. Dialog's clipping area (again). Nokia experts, please help
    By synov in forum Symbian User Interface
    Replies: 0
    Last Post: 2004-06-26, 14:35
  3. Nokia Comunicator 9500
    By alvisone in forum General Development Questions
    Replies: 2
    Last Post: 2004-03-01, 07:01

Posting Permissions

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