Java Code Examples for cn.sharesdk.framework.utils.UIHandler#sendMessage()
The following examples show how to use
cn.sharesdk.framework.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: OnekeyShare.java From -Android_ShareSDK_Example_Wechat with MIT License | 5 votes |
public void onComplete(Platform platform, int action, HashMap<String, Object> res) { Message msg = new Message(); msg.what = MSG_ACTION_CCALLBACK; msg.arg1 = 1; msg.arg2 = action; msg.obj = platform; UIHandler.sendMessage(msg, this); }
Example 2
Source File: FollowList.java From -Android_ShareSDK_Example_Wechat with MIT License | 5 votes |
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); } }
Example 3
Source File: MainActivity.java From -Android_ShareSDK_Example_Wechat with MIT License | 5 votes |
@Override public void onError(Platform platform, int action, Throwable t) { //打印错误信息,print the error msg t.printStackTrace(); //错误监听,handle the error msg Message msg = new Message(); msg.what = MSG_ACTION_CCALLBACK; msg.arg1 = 2; msg.arg2 = action; msg.obj = t; UIHandler.sendMessage(msg, this); }
Example 4
Source File: MainActivity.java From -Android_ShareSDK_Example_Wechat with MIT License | 5 votes |
@Override public void onComplete(Platform platform, int action, HashMap<String, Object> arg2) { //成功监听,handle the successful msg Message msg = new Message(); msg.what = MSG_ACTION_CCALLBACK; msg.arg1 = 1; msg.arg2 = action; msg.obj = platform; UIHandler.sendMessage(msg, this); }
Example 5
Source File: MainActivity.java From -Android_ShareSDK_Example_Wechat with MIT License | 5 votes |
@Override public void onCancel(Platform platform, int action) { //取消监听,handle the cancel msg Message msg = new Message(); msg.what = MSG_ACTION_CCALLBACK; msg.arg1 = 3; msg.arg2 = action; msg.obj = platform; UIHandler.sendMessage(msg, this); }
Example 6
Source File: OnekeyShare.java From AndroidLinkup with GNU General Public License v2.0 | 5 votes |
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); }
Example 7
Source File: OnekeyShare.java From AndroidLinkup with GNU General Public License v2.0 | 5 votes |
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 8
Source File: OnekeyShare.java From AndroidLinkup with GNU General Public License v2.0 | 5 votes |
public void onComplete(Platform platform, int action, HashMap<String, Object> res) { Message msg = new Message(); msg.what = MSG_ACTION_CCALLBACK; msg.arg1 = 1; msg.arg2 = action; msg.obj = platform; UIHandler.sendMessage(msg, this); }
Example 9
Source File: FollowList.java From AndroidLinkup with GNU General Public License v2.0 | 5 votes |
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); } }
Example 10
Source File: OnekeyShare.java From ShareSDKShareDifMsgDemo-Android with MIT License | 5 votes |
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); }
Example 11
Source File: FollowList.java From Huochexing12306 with Apache License 2.0 | 5 votes |
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); } }
Example 12
Source File: OnekeyShare.java From ShareSDKShareDifMsgDemo-Android with MIT License | 5 votes |
public void onComplete(Platform platform, int action, HashMap<String, Object> res) { Message msg = new Message(); msg.what = MSG_ACTION_CCALLBACK; msg.arg1 = 1; msg.arg2 = action; msg.obj = platform; UIHandler.sendMessage(msg, this); }
Example 13
Source File: FollowList.java From ShareSDKShareDifMsgDemo-Android with MIT License | 5 votes |
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); } }
Example 14
Source File: OnekeyShare.java From WeCenterMobile-Android with GNU General Public License v2.0 | 5 votes |
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); }
Example 15
Source File: OnekeyShare.java From WeCenterMobile-Android with GNU General Public License v2.0 | 5 votes |
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 16
Source File: OnekeyShare.java From WeCenterMobile-Android with GNU General Public License v2.0 | 5 votes |
public void onComplete(Platform platform, int action, HashMap<String, Object> res) { Message msg = new Message(); msg.what = MSG_ACTION_CCALLBACK; msg.arg1 = 1; msg.arg2 = action; msg.obj = platform; UIHandler.sendMessage(msg, this); }
Example 17
Source File: FollowList.java From WeCenterMobile-Android with GNU General Public License v2.0 | 5 votes |
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); } }
Example 18
Source File: OnekeyShare.java From Huochexing12306 with Apache License 2.0 | 5 votes |
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); }
Example 19
Source File: OnekeyShare.java From -Android_ShareSDK_Example_Wechat with MIT License | 5 votes |
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); // a statistics of cancel sharing ShareSDK.logDemoEvent(4, platform); }
Example 20
Source File: OnekeyShare.java From Huochexing12306 with Apache License 2.0 | 5 votes |
public void onComplete(Platform platform, int action, HashMap<String, Object> res) { Message msg = new Message(); msg.what = MSG_ACTION_CCALLBACK; msg.arg1 = 1; msg.arg2 = action; msg.obj = platform; UIHandler.sendMessage(msg, this); }