×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    May 2013
    Posts
    153

    pleasse help me ,how to call platformRequest in nokia S40 asha

    hello i am working on nokia asha sdk2.0 using S40-with-theme.now my problem is that when i use platformRequest for sms in asha S40 310 emulator then an exception comes out which is give below
    Code:
    ordinary platformRequest: sms:+917814986367
    URL is : sms:+917814986367
    javax.microedition.io.ConnectionNotFoundException: Invalid URL
        at javax.microedition.midlet.MIDlet.platformRequest(+76)
        at ShareVia$2.actionPerformed(+20)
        at com.sun.lwuit.util.EventDispatcher.fireActionSync(+24)
        at com.sun.lwuit.util.EventDispatcher.fireActionEvent(+92)
        at com.sun.lwuit.Button.fireActionEvent(+82)
        at com.sun.lwuit.Button.released(+11)
        at com.sun.lwuit.Button.pointerReleased(+14)
        at com.sun.lwuit.Form.pointerReleased(+191)
        at com.sun.lwuit.Dialog.pointerReleased(+6)
        at com.sun.lwuit.Component.pointerReleased(+10)
        at com.sun.lwuit.Display.handleEvent(+151)
        at com.sun.lwuit.Display.edtLoopImpl(+166)
        at com.sun.lwuit.Display.invokeAndBlock(+84)
        at com.sun.lwuit.Display.invokeAndBlock(+6)
        at com.sun.lwuit.Form.showModal(+443)
        at com.sun.lwuit.Dialog.showModal(+86)
        at com.sun.lwuit.Dialog.show(+89)
        at com.sun.lwuit.Dialog.show(+12)
        at ShareVia.opendialog(+960)
        at MainUI$4.actionPerformed(+46)
        at com.sun.lwuit.util.EventDispatcher.fireActionSync(+24)
        at com.sun.lwuit.util.EventDispatcher.fireActionEvent(+92)
        at com.sun.lwuit.Button.fireActionEvent(+82)
        at com.sun.lwuit.Button.released(+11)
        at com.sun.lwuit.Button.pointerReleased(+14)
        at com.sun.lwuit.Form.pointerReleased(+191)
        at com.sun.lwuit.Component.pointerReleased(+10)
        at com.sun.lwuit.Display.handleEvent(+151)
        at com.sun.lwuit.Display.edtLoopImpl(+166)
        at com.sun.lwuit.Display.mainEDTLoop(+204)
        at com.sun.lwuit.RunnableWrapper.run(+245)
    BUT when i use that same code in nokia asha1.0 platform for nokia 501 it working well
    so please guide me what should i do..
    my code is given below
    Code:
    try
    					{
    					//m.platformRequest("mailto:?body="+smsthought);
    					m.platformRequest("sms:+917814986367");;
    					}
    					catch (ConnectionNotFoundException e) {
    						// TODO: handle exception
    						System.out.println(" connection errror   "+e.toString());
    					}
    SO please help me ...........

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,567

    Re: pleasse help me ,how to call platformRequest in nokia S40 asha

    Emulators may have problems with SMS support, this kind of code should rather be tested on real devices. As I see, RDA (Devices above, Remote Device Access) lists Nokia Asha 310-s for testing.

  3. #3
    Registered User
    Join Date
    May 2013
    Posts
    153

    Re: pleasse help me ,how to call platformRequest in nokia S40 asha

    i have run on real device but paltformReques for sms is not working on real device also please suggest me what is the reason and what i should to do for it

  4. #4
    Registered User
    Join Date
    Dec 2012
    Location
    India
    Posts
    264

    Re: pleasse help me ,how to call platformRequest in nokia S40 asha

    Hi

    I would recommend a different approach for sending SMS than platform request.It works in all devices as far as I have seen

    http://j2mesamples.blogspot.in/2009/...-wireless.html

  5. #5
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,073

    Re: pleasse help me ,how to call platformRequest in nokia S40 asha

    Use this - http://developer.nokia.com/Community...SMS_in_Java_ME
    A very simple code example to send SMS, instead of platform request.
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

Similar Threads

  1. Replies: 0
    Last Post: 2013-09-22, 13:12
  2. 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
  3. Nokia 9500 PlatformRequest to initiate call
    By bjornmuh in forum Mobile Java General
    Replies: 0
    Last Post: 2004-10-13, 11:49

Posting Permissions

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