コード例 #1
0
 @Override
 public void onReceive(Context context, Intent intent) {
   if (intent.getAction().equals(JNIService.JNI_BROADCAST_KICED_CROWD)) {
     GroupUserObject obj = intent.getParcelableExtra("group");
     if (obj == null) {
       V2Log.e(
           "GroupMemberActivity",
           "Received the broadcast to quit the crowd group , but crowd id is wroing... ");
       return;
     }
     if (obj.getmGroupId() == memberGroup.getmGId()) {
       finish();
     }
   } else if (intent.getAction().equals(JNIService.JNI_BROADCAST_GROUP_USER_REMOVED)) {
     updateMembersChange();
   } else if (intent.getAction().equals(JNIService.JNI_BROADCAST_GROUP_USER_ADDED)) {
     // GroupUserObject guo = (GroupUserObject)
     // intent.getExtras().get(
     // "obj");
     // if (guo == null)
     // return;
     //
     // if(crowd.getmGId() == guo.getmGroupId()){
     // User addUser =
     // GlobalHolder.getInstance().getUser(guo.getmUserId());
     // mMembers.add(addUser);
     // adapter.notifyDataSetChanged();
     // }
     updateMembersChange();
   }
 }
コード例 #2
0
 public static synchronized VideoMixerRequest getInstance() {
   if (mVideoMixerRequest == null) {
     mVideoMixerRequest = new VideoMixerRequest();
     if (!mVideoMixerRequest.initialize(mVideoMixerRequest)) {
       V2Log.e(" VideoMixerRequest initialize failed");
     }
   }
   return mVideoMixerRequest;
 }