private void notifyImModuleLoginStart() { Intent loginStartIntent = new Intent("imNotifyReceiver"); Bundle loginStartIntentBundle = new Bundle(); loginStartIntentBundle.putString("action", "loginStartNotify"); loginStartIntent.putExtras(loginStartIntentBundle); appBroadcastManager.sendBroadcast(loginStartIntent); }
// // /** // * 通知同步公司群组列表 // */ // private void notifyImModuleSyncCorpGroup() { // Intent loginStartIntent = new Intent("imNotifyReceiver"); // Bundle loginStartIntentBundle = new Bundle(); // loginStartIntentBundle.putString("action", "syncCorpGroup"); // loginStartIntent.putExtras(loginStartIntentBundle); // // appBroadcastManager.sendBroadcast(loginStartIntent); // } // private void notifyImModuleLoginResp(int errorCode, String message) { Intent loginRespIntent = new Intent("imNotifyReceiver"); Bundle loginRespBundle = new Bundle(); loginRespBundle.putString("action", "loginRespNotify"); Bundle loginRespData = new Bundle(); loginRespData.putInt("errorCode", errorCode); loginRespData.putString("message", message); loginRespBundle.putBundle("data", loginRespData); loginRespIntent.putExtras(loginRespBundle); appBroadcastManager.sendBroadcast(loginRespIntent); }