Sending A string of lat and long from mobile to server
<p>android how to Send a String of data from an android mobile to server python what need to be modified in this android code </p>

<pre><code>enter code here
  public void appendText(View view){
    Text.append( "\n  In chat ");

    try{
//  while (true)
    //{
    sentence=inputfld.getText().toString();
//  String sentence1=("hohohoh");
    Text.append( "\n  DataStream creating");        
    outToServer.writeBytes(sentence);
//      outToServer.writeBytes(sentence1);
    modifiedSentence = inFromServer.readLine(); 
    Text.append(modifiedSentence);
    inputfld.setText(null);
        }
         }
         catch(Exception modifiedsentence){
        Text.append("Exception");
    }


}

    RestClient client = new RestClient(webServiceUrl);
    client.addBasicAuthentication(username, password);
    try {
        client.execute(RequestMethod.GET);
        if (client.getResponseCode() != 200) {
            //return server error
            return client.getErrorMessage();
        }
        //return valid data
        JSONObject jObj = new JSONObject(client.getResponse());
        return jObj.toString();
    } catch(Exception e) {
        return e.toString();
    }  
</code></pre>

<p>So this to be added the Restclient is what i creat a new class for it ???</p>
