照着集成sdk视频写的源码,为什么点击发送的时候就报错。求教,万分感谢!!

debug发现执行这一句的时候就没有进去,而是直接跳出来了
EMChatManager.getInstance().sendMessage(message, new EMCallBack(){

?? ??? ??? ??? ??? ?@Override
?? ??? ??? ??? ??? ?public void onError(int arg0, String arg1) {
?? ??? ??? ??? ??? ??? ?// TODO Auto-generated method stub
?? ??? ??? ??? ??? ??? ?Toast.makeText(MainActivity.this,"error",Toast.LENGTH_SHORT).show();
?? ??? ??? ??? ??? ?}

?? ??? ??? ??? ??? ?@Override
?? ??? ??? ??? ??? ?public void onProgress(int arg0, String arg1) {
?? ??? ??? ??? ??? ??? ?// TODO Auto-generated method stub
?? ??? ??? ??? ??? ??? ?
?? ??? ??? ??? ??? ?}

?? ??? ??? ??? ??? ?@Override
?? ??? ??? ??? ??? ?public void onSuccess() {
?? ??? ??? ??? ??? ??? ?// TODO Auto-generated method stub
?? ??? ??? ??? ??? ??? ?Toast.makeText(MainActivity.this, "发送成功", Toast.LENGTH_SHORT).show();
?? ??? ??? ??? ??? ?}
?? ??? ??? ??? ??? ?});
QQ截图20150705123218.png QQ截图20150705123236.png QQ截图20150705123334.png
已邀请:

lzan13

赞同来自: sgy123456 fat1

把你的toast都注释掉试下!改为log打印

Loser

赞同来自:

你在哪找的视频,求告知求分享

fat1 - imgeek运营总管

赞同来自:

hg3399.com|官方网站视频: http://i.youku.com/u/UMzAwMTk5 ... 00631

要回复问题请先登录注册

知识价值的认可,源自您的赞赏

扫描二维码,你的支付将由imGeek代收后转给对方

×