直接使用反馈的api不需要集成复杂的activity
public void onPostFeedback() {
Conversation mComversation = new FeedbackAgent(this).getDefaultConversation();
String content = edit.getText().toString().trim();
if(!TextUtils.isEmpty(content)){
hideSystemKeyBoard(this, edit);
showLoadDialog("");
mComversation.addUserReply(content);
mComversation.sync(new SyncListener() {
@Override
public void onSendUserReply(List<Reply> replyList) {
dismissLoadDialog(ZProgressHUD.DISMISS_SUCCESS,"提交成功");
handler.postDelayed(new Runnable() {
@Override
public void run() {
if(isActShow())
onBackNavigation();
}
}, 800);
}
@Override
public void onReceiveDevReply(List<Reply> replyList) {
// 刷新ListView
}
});
}else{
UMApp.getApp().showToast("请输入您的反馈再提交");
}
}