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


Java BmobChatManager.getInstance方法代码示例

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


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

示例1: onCreate

import cn.bmob.im.BmobChatManager; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
	// TODO Auto-generated method stub
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_chat);
	manager = BmobChatManager.getInstance(this);
	MsgPagerNum = 0;
	// 组装聊天对象
	targetUser = (BmobChatUser) getIntent().getSerializableExtra("user");
	targetId = targetUser.getObjectId();
	// BmobLog.i("聊天对象:" + targetUser.getUsername() + ",targetId = "
	// + targetId);
	// 注册广播接收器
	initNewMessageBroadCast();
	initView();
	initRealTimeDataListener();
}
 
开发者ID:nEdAy,项目名称:XPPLE_IM,代码行数:18,代码来源:ChatActivity.java

示例2: onCreate

import cn.bmob.im.BmobChatManager; //导入方法依赖的package包/类
@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_chat);
		manager = BmobChatManager.getInstance(this);
		MsgPagerNum = 0;
		// ��װ�������
		targetUser = (BmobChatUser) getIntent().getSerializableExtra("user");
		targetId = targetUser.getObjectId();
//		BmobLog.i("�������" + targetUser.getUsername() + ",targetId = "
//				+ targetId);
		//ע��㲥������
		initNewMessageBroadCast();
		initView();
	}
 
开发者ID:liuyanggithub,项目名称:Hi,代码行数:17,代码来源:ChatActivity.java

示例3: onCreate

import cn.bmob.im.BmobChatManager; //导入方法依赖的package包/类
@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		userManager = BmobUserManager.getInstance(this);
		manager = BmobChatManager.getInstance(this);
		mApplication = CustomApplication.getInstance();
		DisplayMetrics metric = new DisplayMetrics();
		getWindowManager().getDefaultDisplay().getMetrics(metric);
		mScreenWidth = metric.widthPixels;
		mScreenHeight = metric.heightPixels;
		
		mRequestQueue = mApplication.getRequestQueue();
//		this.tag = setTag();
		
	}
 
开发者ID:liuyanggithub,项目名称:Hi,代码行数:17,代码来源:BaseActivity.java

示例4: onCreate

import cn.bmob.im.BmobChatManager; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_chat);
    mTargetUser = (BBUser) getIntent().getSerializableExtra("user");
    mTargetId = mTargetUser.getObjectId();
    mCurrentUser = BBUser.getCurrentUser(this, BBUser.class);
    currentObjectId = mCurrentUser.getObjectId();
    manager = BmobChatManager.getInstance(this);

    //注册广播接收器
    initNewMessageBroadCast();
    initView();

}
 
开发者ID:JoeSteven,项目名称:BiBi,代码行数:16,代码来源:ChatActivity.java

示例5: onCreate

import cn.bmob.im.BmobChatManager; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle bundle) {
	super.onCreate(bundle);
	setContentView(R.layout.activity_chat);

	manager = BmobChatManager.getInstance(this);

	MsgPagerNum = 0;

	targetUser = (BmobChatUser) getIntent().getSerializableExtra("user");
	targetId = targetUser.getObjectId();
	// ע��㲥������
	initNewMessageBroadCast();
	initView();
}
 
开发者ID:JasonGaoH,项目名称:enjoychat,代码行数:16,代码来源:ChatActivity.java

示例6: onCreate

import cn.bmob.im.BmobChatManager; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle bundle) {
	super.onCreate(bundle);
	userManager = BmobUserManager.getInstance(this);
	manager = BmobChatManager.getInstance(this);
	DisplayMetrics metric = new DisplayMetrics();
	// ����ǰ���ڵ���Ϣ�ŵ�DisplayMetrics��
	getWindowManager().getDefaultDisplay().getMetrics(metric);
	mScreenWidth = metric.widthPixels;
	mScreenHeight = metric.heightPixels;

	mApplication = CustomApplication.getInstance();
}
 
开发者ID:JasonGaoH,项目名称:enjoychat,代码行数:14,代码来源:BaseActivity.java

示例7: onCreate

import cn.bmob.im.BmobChatManager; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	// TODO ��Activity���´���ʱ���Բ���ȫ����Fragment���Ա�Fragment���Իָ�
	setRetainInstance(true);
	mApplcation = CustomApplication.getInstance();
	mInflater = LayoutInflater.from(getActivity());
	userManager = BmobUserManager.getInstance(getActivity());
	manager = BmobChatManager.getInstance(getActivity());
}
 
开发者ID:JasonGaoH,项目名称:enjoychat,代码行数:11,代码来源:FragmentBase.java

示例8: onCreate

import cn.bmob.im.BmobChatManager; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
	// TODO Auto-generated method stub
	super.onCreate(savedInstanceState);
	userManager = BmobUserManager.getInstance(this);
	manager = BmobChatManager.getInstance(this);
	mApplication = CustomApplcation.getInstance();
	DisplayMetrics metric = new DisplayMetrics();
	getWindowManager().getDefaultDisplay().getMetrics(metric);
	mScreenWidth = metric.widthPixels;
	mScreenHeight = metric.heightPixels;
}
 
开发者ID:nEdAy,项目名称:XPPLE_IM,代码行数:13,代码来源:BaseActivity.java

示例9: onCreate

import cn.bmob.im.BmobChatManager; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
	// TODO Auto-generated method stub
	super.onCreate(savedInstanceState);
	setRetainInstance(true);
	mApplication = CustomApplcation.getInstance();
	userManager = BmobUserManager.getInstance(getActivity());
	manager = BmobChatManager.getInstance(getActivity());
	mInflater = LayoutInflater.from(getActivity());
}
 
开发者ID:nEdAy,项目名称:XPPLE_IM,代码行数:11,代码来源:FragmentBase.java

示例10: onCreate

import cn.bmob.im.BmobChatManager; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
	// TODO Auto-generated method stub
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_chat);
	manager = BmobChatManager.getInstance(this);
	MsgPagerNum = 0;
	
	targetUser = (BmobChatUser) getIntent().getSerializableExtra("user");
	targetId = targetUser.getObjectId();

	initNewMessageBroadCast();
	initView();
}
 
开发者ID:HuTianQi,项目名称:QQ,代码行数:15,代码来源:ChatActivity.java

示例11: onCreate

import cn.bmob.im.BmobChatManager; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
	// TODO Auto-generated method stub
	super.onCreate(savedInstanceState);
	setRetainInstance(true);
	mApplication = CustomApplication.getInstance();
	userManager = BmobUserManager.getInstance(getActivity());
	manager = BmobChatManager.getInstance(getActivity());
	mInflater = LayoutInflater.from(getActivity());
}
 
开发者ID:liuyanggithub,项目名称:Hi,代码行数:11,代码来源:FragmentBase.java

示例12: onCreate

import cn.bmob.im.BmobChatManager; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	manager = BmobChatManager.getInstance(this);
	MsgPagerNum = 0;
	// 组装聊天对象
	targetUser = (BmobChatUser) getIntent().getSerializableExtra("user");
	targetId = targetUser.getObjectId();
	// BmobLog.i("聊天对象:" + targetUser.getUsername() + ",targetId = "
	// + targetId);
	// 注册广播接收器
	initNewMessageBroadCast();
	initView();
}
 
开发者ID:hanks-zyh,项目名称:Conquer,代码行数:15,代码来源:ChatActivity.java

示例13: onCreate

import cn.bmob.im.BmobChatManager; //导入方法依赖的package包/类
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    context = this;
    initStatusBar();
    initTheme();
    initLayout();
    userManager = BmobUserManager.getInstance(getApplicationContext());
    manager = BmobChatManager.getInstance(getApplicationContext());
    mApplication = CustomApplication.getInstance();
    currentUser = BmobChatUser.getCurrentUser(context, User.class);
    DisplayMetrics metric = new DisplayMetrics();
    getWindowManager().getDefaultDisplay().getMetrics(metric);
    mScreenWidth = metric.widthPixels;
    mScreenHeight = metric.heightPixels;
    loader = ImageLoader.getInstance();

    option_photo = new DisplayImageOptions.Builder().showImageOnLoading(R.drawable.default_photo)
            .showImageForEmptyUri(R.drawable.default_photo).showImageOnFail(R.drawable.default_photo)
            .cacheInMemory(true).cacheOnDisk(true).considerExifParams(true)
            .bitmapConfig(Bitmap.Config.RGB_565).displayer(new FadeInBitmapDisplayer(200)).build();
    option_pic = new DisplayImageOptions.Builder().showImageOnLoading(R.drawable.pic_loading)
            .showImageForEmptyUri(R.drawable.pic_loading).showImageOnFail(R.drawable.pic_loading)
            .cacheInMemory(true).cacheOnDisk(true).considerExifParams(true)
            .bitmapConfig(Bitmap.Config.RGB_565).displayer(new FadeInBitmapDisplayer(200)).build();
    dbUtils = DbUtils.create(context);
}
 
开发者ID:hanks-zyh,项目名称:Conquer,代码行数:28,代码来源:BaseActivity.java

示例14: onCreate

import cn.bmob.im.BmobChatManager; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setRetainInstance(true);
    mApplication = CustomApplication.getInstance();
    userManager = BmobUserManager.getInstance(getActivity());
    manager = BmobChatManager.getInstance(getActivity());
    mInflater = LayoutInflater.from(getActivity());
}
 
开发者ID:klob,项目名称:Diandi1.20,代码行数:10,代码来源:BaseFragment.java

示例15: onCreate

import cn.bmob.im.BmobChatManager; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_chat);
    mChatManager = BmobChatManager.getInstance(this);
    MsgPagerNum = 0;
    // 组装聊天对象
    targetUser = (BmobChatUser) getIntent().getSerializableExtra("user");
    targetId = targetUser.getObjectId();
    BmobLog.i("聊天对象:" + targetUser.getUsername() + ",targetId = "
            + targetId);
    initView();
}
 
开发者ID:klob,项目名称:Diandi1.20,代码行数:15,代码来源:ChatActivity.java


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