本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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());
}
示例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;
}
示例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());
}
示例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();
}
示例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());
}
示例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();
}
示例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);
}
示例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());
}
示例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();
}