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


Java UIHandler.sendEmptyMessage方法代码示例

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


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

示例1: onComplete

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onComplete(Platform plat, int action, HashMap<String, Object> res) {
	FollowersResult followersResult = parseFollowers(platform.getName(), res, map);

	if(followersResult == null) {
		UIHandler.sendEmptyMessage(FOLLOW_LIST_EMPTY, this);
		return;
	}
	hasNext = followersResult.hasNextPage;
	if (followersResult.list != null && followersResult.list.size() > 0) {
		curPage++;
		Message msg = new Message();
		msg.what = 1;
		msg.obj = followersResult.list;
		UIHandler.sendMessage(msg, this);
	}
}
 
开发者ID:nickalc,项目名称:csdn-master,代码行数:17,代码来源:FollowListPage.java

示例2: authorize

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
private void authorize(Platform plat) {
	if (plat == null) {
		popupOthers();
		return;
	}
	
	this.plat = plat;
	
	if(plat.isValid()) {
		String userId = plat.getDb().getUserId();
		String userName = plat.getDb().getUserName();
		if (userId != null) {
			UIHandler.sendEmptyMessage(MSG_USERID_FOUND, this);
			login(userName, userId, null);
			return;
		}
	}
	plat.setPlatformActionListener(this);
	plat.SSOSetting(true);
	plat.showUser(null);
}
 
开发者ID:chiemy,项目名称:ShareSdkThridPartyLoginDemo,代码行数:22,代码来源:LoginActivity.java

示例3: onComplete

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onComplete(Platform platform, int action,
		HashMap<String, Object> res) {
	if (action == Platform.ACTION_USER_INFOR) {
		UIHandler.sendEmptyMessage(MSG_AUTH_COMPLETE, this);
		register(platform.getDb().getUserName(), platform.getDb().getUserId());
	}
	System.out.println(">>>>res:" + res);
}
 
开发者ID:chiemy,项目名称:ShareSdkThridPartyLoginDemo,代码行数:9,代码来源:LoginActivity.java

示例4: onComplete

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onComplete(Platform plat, int action, HashMap<String, Object> res) {
	ArrayList<Following> data = parseList(res);
	if (data != null && data.size() > 0) {
		curPage++;
		Message msg = new Message();
		msg.what = 1;
		msg.obj = data;
		UIHandler.sendMessage(msg, this);
	}else{
		UIHandler.sendEmptyMessage(FOLLOW_LIST_EMPTY, this);
	}
}
 
开发者ID:SimonJoker,项目名称:OnTheRoad,代码行数:13,代码来源:FollowList.java

示例5: onClick

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
@Override
public void onClick(View v) {
	switch (v.getId()) {
	case R.id.ll_back:
		this.finish();
		break;
	case R.id.tv_ensure:
		UIHandler.sendEmptyMessage(MSG_SHOW_TOAST, SignupPage.this);
		break;
	case R.id.rl_icon:
		//showChangeIconDialog();
		getPicture();
		break;
	case R.id.rl_name:
		showChangeInfo(ChangeUserType.USER_NAME);
		break;
	case R.id.rl_gender:
		showGerderDialog();
		break;
	case R.id.rl_note:
		showChangeInfo(ChangeUserType.USER_NOTE);
		break;
	case R.id.iv_user_icon:
		PicViewer pv = new PicViewer();
		pv.setImagePath(userInfo.getUserIcon());
		pv.show(activity, null);
		break;
	default:
		break;
	}		
}
 
开发者ID:MobClub,项目名称:ThirdPartyLoginDemo,代码行数:32,代码来源:SignupPage.java

示例6: onCancel

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onCancel(Platform plat, int action) {
	UIHandler.sendEmptyMessage(-1, this);
}
 
开发者ID:SShineTeam,项目名称:Huochexing12306,代码行数:4,代码来源:FollowList.java

示例7: onError

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onError(Platform platform, int action, Throwable t) {
	if (action == Platform.ACTION_USER_INFOR) {
		UIHandler.sendEmptyMessage(MSG_AUTH_ERROR, this);
	}
	t.printStackTrace();
}
 
开发者ID:chiemy,项目名称:ShareSdkThridPartyLoginDemo,代码行数:7,代码来源:LoginActivity.java

示例8: onCancel

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onCancel(Platform platform, int action) {
	if (action == Platform.ACTION_USER_INFOR) {
		UIHandler.sendEmptyMessage(MSG_AUTH_CANCEL, this);
	}
}
 
开发者ID:chiemy,项目名称:ShareSdkThridPartyLoginDemo,代码行数:6,代码来源:LoginActivity.java


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