Ejemplo n.º 1
0
 public void sendInfoToUmeng(String content) {
   String contact =
       currentAccount.getPhone() == null ? currentAccount.getEmail() : currentAccount.getPhone();
   UserInfo info = new UserInfo();
   Map<String, String> map = info.getContact();
   if (map == null) map = new HashMap<String, String>();
   map.put("plain", contact);
   info.setContact(map);
   agent.setUserInfo(info);
   defaultConversation = agent.getDefaultConversation();
   defaultConversation.addUserReply(content);
   defaultConversation.sync(this);
 }