×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    32

    send text to server

    i need a code to read a text in a text box on the screen of mobile and send it to a server

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: send text to server

    Quote Originally Posted by souhir View Post
    i need a code to read a text in a text box on the screen of mobile and send it to a server
    well you can fetch the text from the textfield and then you can use CLDC Generic Connection Framework API for sending the same to the server.

    Open the HTTP connection and also open the streams.Then you have the String to be send, just get the byte array of the string and send the same on the server.Search the same on the web.This is some of the part of the code.

    clientSendThisData - is the data from the textfield.
    outputStream = client.openOutputStream();
    outputStream.write(clientSendThisData.getBytes());
    outputStream.flush();
    outputStream.close();
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. Replies: 5
    Last Post: 2010-07-04, 11:49
  2. Inability to send text message.
    By phen in forum General Development Questions
    Replies: 1
    Last Post: 2010-03-02, 05:50
  3. Not able to send data to server
    By sathishkatthi in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2009-12-09, 12:13
  4. Sending information from file to a server?
    By SanjayKhuntia in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2008-08-25, 15:59
  5. Nokia 6600 Socket Server send delay Problem
    By dicson_hu in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-10-31, 07:37

Posting Permissions

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