本文整理汇总了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);
}
}
示例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);
}
示例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);
}
示例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);
}
}
示例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;
}
}
示例6: onCancel
import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onCancel(Platform plat, int action) {
UIHandler.sendEmptyMessage(-1, this);
}
示例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();
}
示例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);
}
}