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)
package com.android.maptest; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; import android.app.ListActivity; import android.content.Intent; import android.database.Cursor; import android.os.Bundle; import android.view.View; import android.widget.ListView; import android.widget.SimpleCursorAdapter; public class userlist extends ListActivity { private static final int CHAT_END=1; private static final int CHAT_END2=0; private NotesDbAdapter mDbHelper; private Cursor mNotesCursor; int port=8188; String[] datastore=new String[10]; public boolean onchat=false; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.userlist); mDbHelper = new NotesDbAdapter(this); mDbHelper.open(); // mDbHelper.createNote("laptop", "george", "papadim", "192.168.1.6"); fillData(); new Comm().start(); } private void fillData() { mNotesCursor = mDbHelper.fetchAllusers(); startManagingCursor(mNotesCursor); String[] from = new String[]{NotesDbAdapter.KEY_USERNAME}; int[] to = new int[]{R.id.usersrow}; SimpleCursorAdapter notes = new SimpleCursorAdapter(this, R.layout.user_row, mNotesCursor, from, to); setListAdapter(notes); } @Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); Cursor c = mNotesCursor; c.moveToPosition(position); Intent i = new Intent(this, chattingMe.class); i.putExtra(NotesDbAdapter.KEY_ROWID, id); i.putExtra(NotesDbAdapter.KEY_USERNAME, c.getString( c.getColumnIndexOrThrow(NotesDbAdapter.KEY_USERNAME))); i.putExtra(NotesDbAdapter.KEY_IP, c.getString( c.getColumnIndexOrThrow(NotesDbAdapter.KEY_IP))); startActivityForResult(i, CHAT_END); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent intent) { super.onActivityResult(requestCode, resultCode, intent); //Bundle extras = intent.getExtras(); switch(requestCode) { case CHAT_END: onchat=false; break; case CHAT_END2: onchat=false; break; } } public class Comm extends Thread { public void run() { try { int i = 1; ServerSocket s = new ServerSocket(8189); for (;;) { Socket incoming = s.accept( ); System.out.println("Spawning " + i); Thread t = new ThreadedEchoHandler(incoming, i); t.start(); i++; } } catch (Exception e) { e.printStackTrace();System.out.println("skata"); } }} class ThreadedEchoHandler extends Thread { // Constructs a handler: i the incoming socket, c the counter for the handlers (used in prompt) public ThreadedEchoHandler(Socket i, int c) { incoming = i; counter = c; } public void run() { try { //BufferedReader in = new BufferedReader (new InputStreamReader(incoming.getInputStream())); PrintWriter out = new PrintWriter (incoming.getOutputStream(), true /* autoFlush*/); BufferedReader in = new BufferedReader(new InputStreamReader(incoming.getInputStream())); datastore[counter]=""; boolean done=false; while(!done){ if(!onchat){ out.println( "yes!" ); out.println("Connection Closed.."); out.println(port); port--; incoming.close(); onchat=true; done=true; chattinglog(counter); }else{ out.println("busy.."); String temp=in.readLine()+"twra mpika?"; out.println(temp); datastore[counter]=datastore[counter]+" "+temp; } /*out.println( "yes!" ); out.println(port); port--; out.println("Connection Closed.."); incoming.close(); //counter=1; chattinglog(counter); */ } } catch (Exception e){ e.printStackTrace(); } } private Socket incoming; private int counter; } private void chattinglog(int num){ int idchat=1; idchat=num; //datastore[1]="xaxaxa12"; Intent i = new Intent(this, chatting.class); i.putExtra("data", datastore[idchat]); i.putExtra("port", port); startActivityForResult(i, CHAT_END2); } }