Discussion Board

Results 1 to 15 of 15

Hybrid View

  1. #1
    Registered User sandude7's Avatar
    Join Date
    Feb 2006
    Location
    PUNE, INDIA
    Posts
    7
    hi..I am developing an application in J2ME for 40 series(Nokia 6610). In this application i need to send sms. How do i proceed with it. I should let you know that i am a beginner in J2ME...Thanks in advance

  2. #2
    Nokia Developer Expert dcrocha's Avatar
    Join Date
    Jun 2005
    Posts
    923
    Unfortuntaley your phone model does not support Wireless Messaging API, which provides SMS-sending capatiblility.

    Daniel

  3. #3
    Registered User sandude7's Avatar
    Join Date
    Feb 2006
    Location
    PUNE, INDIA
    Posts
    7
    Thanks for the reply buddy...Can you tell me whether Nokia 3220 and 6020 supports this or not???..

  4. #4
    Nokia Developer Expert dcrocha's Avatar
    Join Date
    Jun 2005
    Posts
    923
    Yes, they both support WMA. To check the support in other devices, just go to http://forum.nokia.com/devices and you have all information about J2ME APIs implemented on a per-device basis.

    Daniel

  5. #5
    Registered User juarezjunior's Avatar
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,883
    Regarding that you're a beginner, take a look at the documents below:

    A MIDlet Example Using the Wireless Messaging API and the Nokia SMS API: Chat
    http://www.forum.nokia.com/info/sw.n..._v1_0.pdf.html

    MIDP 2.0: Wireless Messaging API Example
    http://www.forum.nokia.com/info/sw.n..._v1_0.zip.html
    Juarez Alvares Barbosa Junior - Brazil

  6. #6
    Regular Contributor johnbutler's Avatar
    Join Date
    Oct 2005
    Posts
    83
    You can send SMS from the 3220. I have an app that does it and have been using that phone model.


    public class SMSObject implements Runnable {

    String message;
    String phoneNumber;
    MessageConnection smsconn;
    String address;


    public void sendMsg(StartScreen startScr) {
    address = "sms://" + this.phoneNumber+":5000";
    new Thread(this).start();
    }

    public void run() {
    try {
    smsconn = newMessageConnection(this.address);
    }
    catch (Exception ex) {
    }
    sendTextMessage(smsconn, this.message, this.address);
    }
    }

  7. #7
    Registered User morningai's Avatar
    Join Date
    Nov 2007
    Posts
    9
    do you know will it run on nokia 6555? I have similar code it never worked for me, not on any emulator, not on my blackberry, not on nokia phone. can I send sms to sprint phone or use springt phone to send sms?

    Quote Originally Posted by johnbutler View Post
    You can send SMS from the 3220. I have an app that does it and have been using that phone model.


    public class SMSObject implements Runnable {

    String message;
    String phoneNumber;
    MessageConnection smsconn;
    String address;


    public void sendMsg(StartScreen startScr) {
    address = "sms://" + this.phoneNumber+":5000";
    new Thread(this).start();
    }

    public void run() {
    try {
    smsconn = newMessageConnection(this.address);
    }
    catch (Exception ex) {
    }
    sendTextMessage(smsconn, this.message, this.address);
    }
    }

  8. #8
    Registered User juarezjunior's Avatar
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,883
    Juarez Alvares Barbosa Junior - Brazil

  9. #9
    Registered User marcoterz's Avatar
    Join Date
    Nov 2009
    Posts
    7
    If I send an SMS from a J2ME app, will it be saved in my list of sent SMSs?
    Is there a way to prevent it, so that the user cannot see the number he/she has sent the SMS to?

    Thanks,
    Marco

  10. #10
    Nokia Developer Champion jitu_goldie's Avatar
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330
    Quote Originally Posted by marcoterz View Post
    If I send an SMS from a J2ME app, will it be saved in my list of sent SMSs?
    Is there a way to prevent it, so that the user cannot see the number he/she has sent the SMS to?

    Thanks,
    Marco
    Dear Marco,

    There are lots of examples related to Sending and receiving SMS from j2me app over Web.. As per my experience, no we cant save the sent messages to sent items of native application..Any SMS sending by j2me app not goes to sent items of native applications ..
    thanks,
    jitu_goldie..

    KEEP TRYING..

  11. #11
    Registered User mukteshwar's Avatar
    Join Date
    Apr 2006
    Posts
    7
    Is there any way to send & receive the email from j2me application?

    Thanks in advance

  12. #12
    Super Contributor wang_shui's Avatar
    Join Date
    Mar 2006
    Posts
    516
    Hi,

    You may search the forum there are lot of threads discussing this
    http://discussion.forum.nokia.com/fo...ad.php?t=67093

    NB:- please don't hijack others thread

    wang

  13. #13
    Registered User AnorEnaj2330's Avatar
    Join Date
    Jul 2012
    Location
    South America
    Posts
    43
    Hello sir good day ! i have my new problem in j2me i am sending sms through j2me application the problem is
    im using myphone qp29 duo then i am sending messages like are you ok then the reciever cant recieve
    my original message this is my code the error with them theres a null before each letter?
    so they can't recieve the original message..

    this is my code


    String me = p_send1.getString();
    String a = p_message.getString();

    if(rona.equals("")) {
    alert1 = new Alert("Alert");
    alert1.setString("Enter Mobile Number!!!");
    alert1.setTimeout(Alert.FOREVER);
    display.setCurrent(alert1);
    }
    else {
    try {

    clientConn=(MessageConnection)Connector.open("sms://"+me);

    }
    catch(Exception e)
    {
    displayAlert(INFO,"Message S Sent !!!", mainScr);
    alert1.setTimeout(Alert.FOREVER);
    display.setCurrent(alert1);

    }
    try {

    TextMessage textmessage = (TextMessage) clientConn.newMessage(MessageConnection.TEXT_MESSAGE);
    textmessage.setAddress("sms://" + me);
    textmessage.setPayloadText("Are you ok?");


    clientConn.send(textmessage);

    }
    catch(Exception e)
    {
    Alert alert1=new Alert("Alert!!!","",null,AlertType.INFO);
    alert1.setTimeout(Alert.FOREVER);
    alert1.setString("Unable to send");
    display.setCurrent(alert1);

    }
    }

    thanks in regard god bless..

  14. #14
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Remember that Java uses 16-bit (Unicode) characters. If you have a regular ASCII text and look at it in the memory, every second byte is going to be 0.

Similar Threads

  1. can i send SMS automatically?
    By vhepeter2005 in forum General Messaging
    Replies: 3
    Last Post: 2007-04-28, 09:23
  2. Emulating server application to send and receive SMS MMS and WAP Push
    By fbianchi@tisifonecomm.it in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2005-11-09, 18:33
  3. PC Application for send SMS throw 6600 and 9210i
    By max.soft in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-09-23, 17:32
  4. Can't send SMS with j2me app on a 5310i mobile
    By _KLiFF in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2004-03-02, 09:07
  5. Sending and receiving SMS messages from J2ME application
    By nkn_motoko in forum Mobile Java General
    Replies: 1
    Last Post: 2001-11-06, 20:34

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved