×

Discussion Board

Results 1 to 5 of 5

Thread: Sent message

  1. #1
    Registered User
    Join Date
    Sep 2012
    Posts
    4

    Smile Sent message

    hello po ) good morning ..

    i have my j2me project im a new beginner in j2me java micro editon i want to save all information in a Browse or what should i do so i can save the messages in sent items . i want so send then it will automatically save in browse or in my output file . thanks ..

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,569

    Re: About JNI in j2me

    I'm not sure what you're really asking about when you talk about messages and "Browse", but..

    For saving data locally in a J2ME app, look up RMS and JSR-75 FileConnection API in the documentation and wiki: http://www.developer.nokia.com/Commu.../Data_Articles

    A J2ME app has no access to the Inbox, Outbox, or other default Messaging app content. All you can do is send messages, and receive them on a specific port. See earlier discussions on that: http://www.developer.nokia.com/Commu...?search_type=1

  3. #3
    Registered User
    Join Date
    Sep 2012
    Posts
    4

    Re: sent items.

    hello good afternoon im a new beginner in j2me java micro edition and i want to save the sent messages in sent messages in j2me i want to send the messages and it will automaticall save to sent items how can i do that . i hope you can help me ..


    thanks ,
    God Bless !! more power ,..

  4. #4
    Registered User
    Join Date
    Sep 2012
    Posts
    4

    Re: Sent message

    hello again .
    i want is after you send the messages it will automatically save in a form "sent items".
    then you can browse the existing messages in the form "Sent Items"

  5. #5
    Registered User
    Join Date
    Sep 2012
    Posts
    4

    Re: Sent message

    } else if (c== cmdSending){

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

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

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

    }
    catch(Exception e)
    {
    displayAlert(INFO, "Hospital Code Sent !!!", mainScr);
    alert.setTimeout(Alert.FOREVER);
    display.setCurrent(alert);

    }
    try {

    TextMessage textmessage = (TextMessage) clientConn.newMessage(MessageConnection.TEXT_MESSAGE);
    textmessage.setAddress("sms://" + rona);
    textmessage.setPayloadText((("SH")+p_message.getString()));

    clientConn.send(textmessage);

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

    }
    }

Similar Threads

  1. Replies: 2
    Last Post: 2008-07-25, 07:59
  2. Replies: 1
    Last Post: 2006-12-18, 20:04
  3. Replies: 0
    Last Post: 2006-12-18, 17:15
  4. Nokia 6600: Phone restarts when editing message (text message)
    By CY_ELLEN in forum General Development Questions
    Replies: 0
    Last Post: 2004-03-15, 12:21
  5. Replies: 1
    Last Post: 2002-11-12, 05:55

Posting Permissions

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