当前位置: 首页>>代码示例>>Java>>正文


Java BmobConfig.BROADCAST_NEW_MESSAGE属性代码示例

本文整理汇总了Java中cn.bmob.im.config.BmobConfig.BROADCAST_NEW_MESSAGE属性的典型用法代码示例。如果您正苦于以下问题:Java BmobConfig.BROADCAST_NEW_MESSAGE属性的具体用法?Java BmobConfig.BROADCAST_NEW_MESSAGE怎么用?Java BmobConfig.BROADCAST_NEW_MESSAGE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在cn.bmob.im.config.BmobConfig的用法示例。


在下文中一共展示了BmobConfig.BROADCAST_NEW_MESSAGE属性的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initNewMessageBroadCast

private void initNewMessageBroadCast(){
    // 注册接收消息广播 更新小圆点
    receiver = new NewMessageReceiver();
    IntentFilter intentFilter = new IntentFilter(BmobConfig.BROADCAST_NEW_MESSAGE);
    intentFilter.setPriority(3);
    registerReceiver(receiver, intentFilter);
}
 
开发者ID:JoeSteven,项目名称:BiBi,代码行数:7,代码来源:MessageActivity.java

示例2: initNewMessageBroadCast

private void initNewMessageBroadCast(){
    // 注册接收消息广播
    receiver = new NewMessageReceiver();
    IntentFilter intentFilter = new IntentFilter(BmobConfig.BROADCAST_NEW_MESSAGE);
    //设置广播的优先级别大于Mainacitivity,这样如果消息来的时候正好在chat页面,直接显示消息,而不是提示消息未读
    intentFilter.setPriority(5);
    registerReceiver(receiver, intentFilter);
}
 
开发者ID:JoeSteven,项目名称:BiBi,代码行数:8,代码来源:ChatActivity.java

示例3: initNewMessageBroadCast

private void initNewMessageBroadCast() {
	//ע�������Ϣ�㲥
	receiver = new NewBroadcastReceiver(); 
	IntentFilter intentFilter = new IntentFilter(BmobConfig.BROADCAST_NEW_MESSAGE);
	//���ù㲥�����ȼ�����MainActivity,���������Ϣ����ʱ�����������chatҳ�棬ֱ����ʾ��Ϣ����������ʾ��Ϣδ��
	intentFilter.setPriority(5);
	registerReceiver(receiver, intentFilter);
}
 
开发者ID:JasonGaoH,项目名称:enjoychat,代码行数:8,代码来源:ChatActivity.java

示例4: initNewMessageBroadCast

private void initNewMessageBroadCast() {
	// ע�������Ϣ�㲥
	newBroadCastReceiver = new NewBroadcastReceiver();
	IntentFilter intentFilter = new IntentFilter(
			BmobConfig.BROADCAST_NEW_MESSAGE);
	// ���ȼ�Ҫ����ChatActivity
	intentFilter.setPriority(3);
	registerReceiver(newBroadCastReceiver, intentFilter);
}
 
开发者ID:JasonGaoH,项目名称:enjoychat,代码行数:9,代码来源:MainActivity.java

示例5: initNewMessageBroadCast

private void initNewMessageBroadCast() {
	// 注册接收消息广播
	receiver = new NewBroadcastReceiver();
	IntentFilter intentFilter = new IntentFilter(
			BmobConfig.BROADCAST_NEW_MESSAGE);
	// 设置广播的优先级别大于Mainacitivity,这样如果消息来的时候正好在chat页面,直接显示消息,而不是提示消息未读
	intentFilter.setPriority(5);
	registerReceiver(receiver, intentFilter);
}
 
开发者ID:nEdAy,项目名称:XPPLE_IM,代码行数:9,代码来源:ChatActivity.java

示例6: initNewMessageBroadCast

private void initNewMessageBroadCast() {
	// 注册接收消息广播
	newReceiver = new NewBroadcastReceiver();
	IntentFilter intentFilter = new IntentFilter(
			BmobConfig.BROADCAST_NEW_MESSAGE);
	// 优先级要低于ChatActivity
	intentFilter.setPriority(3);
	registerReceiver(newReceiver, intentFilter);
}
 
开发者ID:nEdAy,项目名称:XPPLE_IM,代码行数:9,代码来源:MainActivity.java

示例7: initNewMessageBroadCast

private void initNewMessageBroadCast(){
	
	receiver = new NewBroadcastReceiver();
	IntentFilter intentFilter = new IntentFilter(BmobConfig.BROADCAST_NEW_MESSAGE);
	
	intentFilter.setPriority(5);
	registerReceiver(receiver, intentFilter);
}
 
开发者ID:HuTianQi,项目名称:QQ,代码行数:8,代码来源:ChatActivity.java

示例8: initNewMessageBroadCast

private void initNewMessageBroadCast(){
	
	newReceiver = new NewBroadcastReceiver();
	IntentFilter intentFilter = new IntentFilter(BmobConfig.BROADCAST_NEW_MESSAGE);
	
	intentFilter.setPriority(3);
	registerReceiver(newReceiver, intentFilter);
}
 
开发者ID:HuTianQi,项目名称:QQ,代码行数:8,代码来源:MainActivity.java

示例9: initNewMessageBroadCast

private void initNewMessageBroadCast(){
	// ע�������Ϣ�㲥
	receiver = new NewBroadcastReceiver();
	IntentFilter intentFilter = new IntentFilter(BmobConfig.BROADCAST_NEW_MESSAGE);
	//���ù㲥�����ȼ������Mainacitivity,���������Ϣ����ʱ��������chatҳ�棬ֱ����ʾ��Ϣ����������ʾ��Ϣδ��
	intentFilter.setPriority(5);
	registerReceiver(receiver, intentFilter);
}
 
开发者ID:liuyanggithub,项目名称:Hi,代码行数:8,代码来源:ChatActivity.java

示例10: initNewMessageBroadCast

private void initNewMessageBroadCast() {
	// ע�������Ϣ�㲥
	newReceiver = new NewBroadcastReceiver();
	IntentFilter intentFilter = new IntentFilter(BmobConfig.BROADCAST_NEW_MESSAGE);
	// ���ȼ�Ҫ����ChatActivity
	intentFilter.setPriority(3);
	registerReceiver(newReceiver, intentFilter);
}
 
开发者ID:liuyanggithub,项目名称:Hi,代码行数:8,代码来源:MainActivity.java

示例11: initNewMessageBroadCast

private void initNewMessageBroadCast(){
	// ע�������Ϣ�㲥
	newReceiver = new NewBroadcastReceiver();
	IntentFilter intentFilter = new IntentFilter(BmobConfig.BROADCAST_NEW_MESSAGE);
	//���ȼ�Ҫ����ChatActivity
	intentFilter.setPriority(3);
	registerReceiver(newReceiver, intentFilter);
}
 
开发者ID:liuyanggithub,项目名称:Hi,代码行数:8,代码来源:MainActivity1.java

示例12: initNewMessageBroadCast

private void initNewMessageBroadCast() {
	// 注册接收消息广播
	receiver = new NewBroadcastReceiver();
	IntentFilter intentFilter = new IntentFilter(BmobConfig.BROADCAST_NEW_MESSAGE);
	// 设置广播的优先级别大于Mainacitivity,这样如果消息来的时候正好在chat页面,直接显示消息,而不是提示消息未读
	intentFilter.setPriority(5);
	registerReceiver(receiver, intentFilter);
}
 
开发者ID:hanks-zyh,项目名称:Conquer,代码行数:8,代码来源:ChatActivity.java


注:本文中的cn.bmob.im.config.BmobConfig.BROADCAST_NEW_MESSAGE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。