Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
import java.io.BufferedReader; import java.io.IOException; import java.io.PrintWriter; import java.net.Socket; import java.net.UnknownHostException; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; public class LocationSend extends Activity implements OnClickListener { private final String ipAddress = "10.0.0.1"; // ip of server pc. private final int port = 4444; EditText mLocation; Button mConfirm; Socket kkSocket = null; PrintWriter out = null; BufferedReader in = null; /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); mLocation = (EditText) findViewById(R.id.location); mConfirm = (Button) findViewById(R.id.confirm); mConfirm.setOnClickListener(this); try { kkSocket = new Socket(ipAddress, port); } catch (UnknownHostException e) { errorMessage("Unknown host" + ipAddress); } catch (IOException e) { errorMessage("Couldn't get I/O for the connection to: " + ipAddress); } } private void errorMessage(String msg) { this.showAlert("Error!", msg, "OK", true); System.err.println("Error:" + msg); } public void onClick(View view) { try { out = new PrintWriter(kkSocket.getOutputStream(), true); out.println(mLocation.getText()); } catch (UnknownHostException e) { errorMessage("Unknown host" + ipAddress); } catch (IOException e) { errorMessage("Couldn't get I/O for the connection to: " + ipAddress); } } @Override protected void onPause() { // TODO Auto-generated method stub super.onPause(); try { kkSocket.close(); } catch (IOException e) { errorMessage("Couldn't close I/O for the connection to: " + ipAddress); } } @Override protected void onResume() { super.onResume(); try { kkSocket = new Socket(ipAddress, port); } catch (UnknownHostException e) { errorMessage("Unknown host " + ipAddress); } catch (IOException e) { errorMessage("Couldn't get I/O for the connection to: " + ipAddress); } } @Override protected void onStop() { super.onStop(); try { if (kkSocket != null) { if (kkSocket.isConnected()) kkSocket.close(); } } catch (IOException e) { errorMessage("Couldn't close I/O for the connection to: " + ipAddress); } } }