Java Code Examples for com.mob.tools.utils.UIHandler#sendMessage()

The following examples show how to use com.mob.tools.utils.UIHandler#sendMessage() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FollowListPage.java    From BigApp_WordPress_Android with Apache License 2.0 6 votes vote down vote up
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);
	}
}
 
Example 2
Source File: FollowListPage.java    From BigApp_WordPress_Android with Apache License 2.0 6 votes vote down vote up
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);
	}
}
 
Example 3
Source File: FollowListPage.java    From BigApp_Discuz_Android with Apache License 2.0 6 votes vote down vote up
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);
	}
}
 
Example 4
Source File: OnekeyShareThemeImpl.java    From GithubApp with Apache License 2.0 5 votes vote down vote up
public final void onError(Platform platform, int action, Throwable t) {
	t.printStackTrace();

	Message msg = new Message();
	msg.arg1 = 2;
	msg.arg2 = action;
	msg.obj = t;
	UIHandler.sendMessage(msg, this);

	// 分享失败的统计
	ShareSDK.logDemoEvent(4, platform);
}
 
Example 5
Source File: ReflectableShareContentCustomizeCallback.java    From BigApp_WordPress_Android with Apache License 2.0 5 votes vote down vote up
@Override
public void onShare(Platform platform, ShareParams paramsToShare) {
	if (onShareCallback != null) {
		Message msg = new Message();
		msg.what = onShareWhat;
		msg.obj = new Object[] {platform, paramsToShare};
		UIHandler.sendMessage(msg, onShareCallback);
	}
}
 
Example 6
Source File: OnekeyShareThemeImpl.java    From LQRWeChat with MIT License 5 votes vote down vote up
public final void onComplete(Platform platform, int action,
		HashMap<String, Object> res) {
	Message msg = new Message();
	msg.arg1 = 1;
	msg.arg2 = action;
	msg.obj = platform;
	UIHandler.sendMessage(msg, this);
}
 
Example 7
Source File: OnekeyShareThemeImpl.java    From Mobike with Apache License 2.0 5 votes vote down vote up
public final void onCancel(Platform platform, int action) {
	Message msg = new Message();
	msg.arg1 = 3;
	msg.arg2 = action;
	msg.obj = platform;
	UIHandler.sendMessage(msg, this);

	// 分享失败的统计
	ShareSDK.logDemoEvent(5, platform);
}
 
Example 8
Source File: OnekeyShareThemeImpl.java    From fingerpoetry-android with Apache License 2.0 5 votes vote down vote up
public final void onCancel(Platform platform, int action) {
	Message msg = new Message();
	msg.arg1 = 3;
	msg.arg2 = action;
	msg.obj = platform;
	UIHandler.sendMessage(msg, this);

	// 分享失败的统计
	ShareSDK.logDemoEvent(5, platform);
}
 
Example 9
Source File: OnekeyShareThemeImpl.java    From Mobike with Apache License 2.0 5 votes vote down vote up
public final void onComplete(Platform platform, int action,
		HashMap<String, Object> res) {
	Message msg = new Message();
	msg.arg1 = 1;
	msg.arg2 = action;
	msg.obj = platform;
	UIHandler.sendMessage(msg, this);
}
 
Example 10
Source File: OnekeyShareThemeImpl.java    From MyHearts with Apache License 2.0 5 votes vote down vote up
public final void onComplete(Platform platform, int action,
		HashMap<String, Object> res) {
	Message msg = new Message();
	msg.arg1 = 1;
	msg.arg2 = action;
	msg.obj = platform;
	UIHandler.sendMessage(msg, this);
}
 
Example 11
Source File: OnekeyShare.java    From BigApp_WordPress_Android with Apache License 2.0 5 votes vote down vote up
public void onCancel(Platform platform, int action) {
	Message msg = new Message();
	msg.what = MSG_ACTION_CCALLBACK;
	msg.arg1 = 3;
	msg.arg2 = action;
	msg.obj = platform;
	UIHandler.sendMessage(msg, this);

	// 分享失败的统计
	ShareSDK.logDemoEvent(5, platform);
}
 
Example 12
Source File: OnekeyShare.java    From BigApp_Discuz_Android with Apache License 2.0 5 votes vote down vote up
public void onError(Platform platform, int action, Throwable t) {
	t.printStackTrace();

	Message msg = new Message();
	msg.what = MSG_ACTION_CCALLBACK;
	msg.arg1 = 2;
	msg.arg2 = action;
	msg.obj = t;
	UIHandler.sendMessage(msg, this);

	// 分享失败的统计
	ShareSDK.logDemoEvent(4, platform);
}
 
Example 13
Source File: OnekeyShare.java    From BigApp_WordPress_Android with Apache License 2.0 5 votes vote down vote up
public void onError(Platform platform, int action, Throwable t) {
	t.printStackTrace();

	Message msg = new Message();
	msg.what = MSG_ACTION_CCALLBACK;
	msg.arg1 = 2;
	msg.arg2 = action;
	msg.obj = t;
	UIHandler.sendMessage(msg, this);

	// 分享失败的统计
	ShareSDK.logDemoEvent(4, platform);
}
 
Example 14
Source File: OnekeyShareThemeImpl.java    From GithubApp with Apache License 2.0 5 votes vote down vote up
public final void onComplete(Platform platform, int action,
		HashMap<String, Object> res) {
	Message msg = new Message();
	msg.arg1 = 1;
	msg.arg2 = action;
	msg.obj = platform;
	UIHandler.sendMessage(msg, this);
}
 
Example 15
Source File: OnekeyShareThemeImpl.java    From enjoyshop with Apache License 2.0 5 votes vote down vote up
public final void onCancel(Platform platform, int action) {
	Message msg = new Message();
	msg.arg1 = 3;
	msg.arg2 = action;
	msg.obj = platform;
	UIHandler.sendMessage(msg, this);

	// 分享失败的统计
	ShareSDK.logDemoEvent(5, platform);
}
 
Example 16
Source File: OnekeyShareThemeImpl.java    From enjoyshop with Apache License 2.0 5 votes vote down vote up
public final void onError(Platform platform, int action, Throwable t) {
	t.printStackTrace();

	Message msg = new Message();
	msg.arg1 = 2;
	msg.arg2 = action;
	msg.obj = t;
	UIHandler.sendMessage(msg, this);

	// 分享失败的统计
	ShareSDK.logDemoEvent(4, platform);
}
 
Example 17
Source File: OnekeyShareThemeImpl.java    From enjoyshop with Apache License 2.0 5 votes vote down vote up
public final void onComplete(Platform platform, int action,
		HashMap<String, Object> res) {
	Message msg = new Message();
	msg.arg1 = 1;
	msg.arg2 = action;
	msg.obj = platform;
	UIHandler.sendMessage(msg, this);
}
 
Example 18
Source File: OnekeyShareThemeImpl.java    From YiZhi with Apache License 2.0 5 votes vote down vote up
public final void onCancel(Platform platform, int action) {
	Message msg = new Message();
	msg.arg1 = 3;
	msg.arg2 = action;
	msg.obj = platform;
	UIHandler.sendMessage(msg, this);

	// 分享失败的统计
	ShareSDK.logDemoEvent(5, platform);
}
 
Example 19
Source File: OnekeyShareThemeImpl.java    From YiZhi with Apache License 2.0 5 votes vote down vote up
public final void onError(Platform platform, int action, Throwable t) {
	t.printStackTrace();

	Message msg = new Message();
	msg.arg1 = 2;
	msg.arg2 = action;
	msg.obj = t;
	UIHandler.sendMessage(msg, this);

	// 分享失败的统计
	ShareSDK.logDemoEvent(4, platform);
}
 
Example 20
Source File: OnekeyShareThemeImpl.java    From BaoKanAndroid with MIT License 5 votes vote down vote up
public final void onComplete(Platform platform, int action,
		HashMap<String, Object> res) {
	Message msg = new Message();
	msg.arg1 = 1;
	msg.arg2 = action;
	msg.obj = platform;
	UIHandler.sendMessage(msg, this);
}