I have spent several hours trying to figure out why my android app kept crashing. At some point, I noticed that a lot people were complaining about log4j for android on the internet. the log4j isn't quite compatible with the android jre so maybe we should just remove it ( at least from the client; i will do a split between the server and the client part ).

My test application was simple. The android application connects to the server and sends a message.

 CiatriClient cc = new CiatriClient();
 cc.setServerAddr("192.168.2.101");
 cc.setServerPort(20000);
 try{
 cc.connect();
 cc.start();
 
 CiatriMessage msg = new CiatriMessage(CiatriMessageType.M3);
 msg.addCiatriMessageData(String.valueOf("abc"));
 
 cc.getCiatriCommunicationModule().sendMessage(msg);
 
 
 }
The application worked well.