×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    7

    Question J2ME USSD call: Invalid number

    i am working on an application that relies on Calls, Ussd and Sms

    application is working fine with USSD having one asterisk "*" e.g *123#,

    but i have to dial USSD with two asterisks e.g *123*456# and it is generating error saying "Invalid Number"

    my code for call

    Code:
    public void Dial(String telNo) {
         try {
             MyApp.getInstance().platformRequest("tel:"+telNo);
         } catch (ConnectionNotFoundException ae) {
         }
     }
    function call

    Code:
    Dial("*123*456#");
    My questions are,

    1-Does j2me support USSD with two or more asterisks?

    2-If not, can AT commands be used as alternative?

    3-Is there any other possible solution?

  2. #2
    Regular Contributor
    Join Date
    Mar 2011
    Location
    Pune,Maharashtra,India
    Posts
    92

    Re: J2ME USSD call: Invalid number

    Quote Originally Posted by muhammadumair View Post
    i am working on an application that relies on Calls, Ussd and Sms

    application is working fine with USSD having one asterisk "*" e.g *123#,

    but i have to dial USSD with two asterisks e.g *123*456# and it is generating error saying "Invalid Number"

    my code for call

    Code:
    public void Dial(String telNo) {
         try {
             MyApp.getInstance().platformRequest("tel:"+telNo);
         } catch (ConnectionNotFoundException ae) {
         }
     }
    function call

    Code:
    Dial("*123*456#");
    My questions are,

    1-Does j2me support USSD with two or more asterisks?

    2-If not, can AT commands be used as alternative?

    3-Is there any other possible solution?
    For your second question
    You can not use AT commands from J2ME
    Regards,
    Pradip

  3. #3
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: J2ME USSD call: Invalid number

    1) Does Java ME support USSD with two asterisks?
    Depends. Note also that some phones do not support USSD at all (only post dial DTMF).
    Are you talking about a Nokia phone here? Unless things have changed in the past 2 years, Nokia phones do not support USSD at all. (Google "USSD Java Nokia" and you will find plenty of such discussions...)

    3) No workarounds. Except if you are running on Symbian phones, then you should create a native application...

    Hartti

Similar Threads

  1. Replies: 37
    Last Post: 2011-07-11, 11:04
  2. How to make a call from j2me app by dialling *873<number>
    By RajeshBansal in forum Mobile Java Networking & Messaging & Security
    Replies: 10
    Last Post: 2010-09-24, 04:47
  3. Ussd call
    By shikha19june in forum Symbian
    Replies: 1
    Last Post: 2010-03-29, 11:10
  4. 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
  5. How to get the number of an incoming call in j2me application?
    By adil035 in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2006-03-28, 06:40

Posting Permissions

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