Sending ArrayList<Object> through socket. Java
问题 What i'm trying to do is to send and ArrayList through a socket from Android client to Java server. Here is the code of client which sends the ArrayList : private void sendContacts(){ AppHelper helperClass = new AppHelper(getApplicationContext()); final ArrayList<Person> list = helperClass.getContacts(); System.out.println("Lenght of an contacts array : " +list.size()); // for (Person person : list) { // System.out.println("Name "+person.getName()+"\nNumber "+ person.getNr()); // } handler