Back to project page dcchat.
The source code is released under:
Apache License
If you think the Android project dcchat listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.kaleidos.dcchat.async; //from ww w .j a v a2s. c o m import net.kaleidos.dcchat.DCChat; public class SendMessageAsyncTask extends Thread{ DCChat dcchat; String msg; String sid; public SendMessageAsyncTask(DCChat dcchat, String msg, String sid) { super(); this.dcchat = dcchat; this.msg = msg; this.sid = sid; } @Override public void run() { try { if (sid == null) { dcchat.sendBroadcastMessage(msg, false); } else{ dcchat.sendDirectMessage(sid, msg); } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } }