protected boolean sendeDaten(String[] string) throws IOException { String sendText = "text=" + URLEncoder.encode(string[0] + "@@@" + "3e35abd79961e6f8b1b7dece59a7efea" + "\r", "UTF-8"); URL url = new URL( "http://10.0.2.2/Schalmeien-Neu/android_new_event.php" ); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST"); connection.setDoInput(true); connection.setDoOutput(true); connection.setUseCaches(false); connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); connection.setRequestProperty("Content-Length", String.valueOf(sendText.length())); OutputStreamWriter outputWriter = new OutputStreamWriter(connection.getOutputStream()); outputWriter.write(sendText); outputWriter.flush(); outputWriter.close(); connection.disconnect(); return true; }