Java Code Examples for com.tencent.connect.common.Constants#REQUEST_QZONE_SHARE
The following examples show how to use
com.tencent.connect.common.Constants#REQUEST_QZONE_SHARE .
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: CoinDetailsActivity.java From PocketEOS-Android with GNU Lesser General Public License v3.0 | 6 votes |
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); hideProgress(); // Tencent.onActivityResultData(requestCode, resultCode, data, new BaseUIListener(CoinDetailsActivity.this, true)); if (requestCode == Constants.REQUEST_QQ_SHARE || requestCode == Constants.REQUEST_QZONE_SHARE || requestCode == Constants.REQUEST_OLD_SHARE) { Tencent.handleResultData(data, new BaseUIListener(CoinDetailsActivity.this, true)); } if (requestCode == 100 && resultCode == 300) { if (data.getExtras().getString("coin_type").equals(accountWithCoinBean.getCoinName())) { mDataBeanList.clear(); page = 0; mPostChainHistoryBean.setPage(page); presenter.getTransferHistoryData(mPostChainHistoryBean); BigDecimal oldcoinforcny = new BigDecimal(accountWithCoinBean.getCoinForCny()); BigDecimal oldcoin = new BigDecimal(accountWithCoinBean.getCoinNumber()); BigDecimal minuscny = new BigDecimal(data.getExtras().getString("coin_cny")); BigDecimal minuscoin = new BigDecimal(data.getExtras().getString("coin_number")); mIconTotalNumber.setText(StringUtils.addComma(BigDecimalUtil.minus(oldcoinforcny, minuscny, 4) + "") + " CNY"); mIconNumber.setText(StringUtils.addComma(BigDecimalUtil.minus(oldcoin, minuscoin, 4) + "") + " " + accountWithCoinBean.getCoinName()); mIconRmbNumber.setText("≈" + StringUtils.addComma(BigDecimalUtil.minus(oldcoinforcny, minuscny, 4) + "") + " CNY"); } } }
Example 2
Source File: BlackBoxCoinDetailsActivity.java From PocketEOS-Android with GNU Lesser General Public License v3.0 | 6 votes |
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); hideProgress(); if (requestCode == Constants.REQUEST_QQ_SHARE || requestCode == Constants.REQUEST_QZONE_SHARE || requestCode == Constants.REQUEST_OLD_SHARE) { Tencent.handleResultData(data, new BaseUIListener(BlackBoxCoinDetailsActivity.this, true)); } if (requestCode == 100 && resultCode == 300) { if (data.getExtras().getString("coin_type").equals(accountWithCoinBean.getCoinName())) { mDataBeanList.clear(); page = 0; mPostChainHistoryBean.setPage(0); presenter.getTransferHistoryData(mPostChainHistoryBean); } } }
Example 3
Source File: ContinueRdPacketActivity.java From PocketEOS-Android with GNU Lesser General Public License v3.0 | 5 votes |
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); hideProgress(); if (requestCode == Constants.REQUEST_QQ_SHARE || requestCode == Constants.REQUEST_QZONE_SHARE || requestCode == Constants.REQUEST_OLD_SHARE) { Tencent.handleResultData(data, new BaseUIListener(ContinueRdPacketActivity.this, true)); } }
Example 4
Source File: AnticipationRedPacketActivity.java From PocketEOS-Android with GNU Lesser General Public License v3.0 | 5 votes |
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); hideProgress(); // Tencent.onActivityResultData(requestCode, resultCode, data, new BaseUIListener(AnticipationRedPacketActivity.this, true)); if (requestCode == Constants.REQUEST_API) { if (resultCode == Constants.REQUEST_QQ_SHARE || resultCode == Constants.REQUEST_QZONE_SHARE || resultCode == Constants.REQUEST_OLD_SHARE) { Tencent.handleResultData(data, new BaseUIListener(AnticipationRedPacketActivity.this, true)); } } }
Example 5
Source File: MakeCollectionsActivity.java From PocketEOS-Android with GNU Lesser General Public License v3.0 | 5 votes |
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); hideProgress(); // Tencent.onActivityResultData(requestCode, resultCode, data, new BaseUIListener(MakeCollectionsActivity.this, true)); if (requestCode == Constants.REQUEST_QQ_SHARE || requestCode == Constants.REQUEST_QZONE_SHARE || requestCode == Constants.REQUEST_OLD_SHARE) { Tencent.handleResultData(data, new BaseUIListener(MakeCollectionsActivity.this, true)); } }
Example 6
Source File: MainActivity.java From PocketEOS-Android with GNU Lesser General Public License v3.0 | 5 votes |
@Override public void onActivityResult(int requestCode, int resultCode, Intent data) { Fragment fragment = homeFragment; fragment.onActivityResult(requestCode, resultCode, data); hideProgress(); if (requestCode == Constants.REQUEST_QQ_SHARE || requestCode == Constants.REQUEST_QZONE_SHARE || requestCode == Constants.REQUEST_OLD_SHARE) { Tencent.handleResultData(data, new BaseUIListener(MainActivity.this, true)); } }
Example 7
Source File: AccountDetailsActivity.java From PocketEOS-Android with GNU Lesser General Public License v3.0 | 5 votes |
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); hideProgress(); if (requestCode == Constants.REQUEST_QQ_SHARE || requestCode == Constants.REQUEST_QZONE_SHARE || requestCode == Constants.REQUEST_OLD_SHARE) { Tencent.handleResultData(data, new BaseUIListener(AccountDetailsActivity.this, true)); } }
Example 8
Source File: SharePageActivity.java From letv with Apache License 2.0 | 5 votes |
protected void onActivityResult(int requestCode, int resultCode, Intent data) { LogInfo.log("fornia", "SharePageActivity onActivityResult"); if (requestCode == Constants.REQUEST_QQ_SHARE && resultCode == 0) { LogInfo.log("fornia", "SharePageActivity 1onActivityResult"); finish(); } if (requestCode == Constants.REQUEST_QZONE_SHARE && resultCode == 0) { LogInfo.log("fornia", "SharePageActivity 2onActivityResult"); finish(); } if (this.mSsoHandler != null) { this.mSsoHandler.authorizeCallBack(requestCode, resultCode, data); } LogInfo.log("fornia", "SharePageActivity onActivityResult resultCode" + resultCode); }
Example 9
Source File: QQPlatform.java From SocialSdkLibrary with Apache License 2.0 | 5 votes |
@Override public void onActivityResult(BaseActionActivity activity, int requestCode, int resultCode, Intent data) { if (requestCode == Constants.REQUEST_QQ_SHARE || requestCode == Constants.REQUEST_QZONE_SHARE) { if (mIUiListenerWrap != null) Tencent.handleResultData(data, mIUiListenerWrap); } else if (requestCode == Constants.REQUEST_LOGIN) { if (mQQLoginHelper != null) mQQLoginHelper.handleResultData(data); } }
Example 10
Source File: QQZoneShareHandler.java From BiliShare with Apache License 2.0 | 5 votes |
@Override public void onActivityResult(Activity activity, int requestCode, int resultCode, Intent data, SocializeListeners.ShareListener listener) { super.onActivityResult(activity, requestCode, resultCode, data, listener); if (requestCode == Constants.REQUEST_QZONE_SHARE) { Log.d(TAG, "handle on activity result"); Tencent.onActivityResultData(requestCode, resultCode, data, mUiListener); } }
Example 11
Source File: ShareHandlerActivity.java From ShareSDK with MIT License | 5 votes |
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == Constants.REQUEST_QQ_SHARE || requestCode == Constants.REQUEST_QZONE_SHARE) { Tencent.onActivityResultData(requestCode, resultCode, data, null); } }
Example 12
Source File: SocialShareActivity.java From ESSocialSDK with Apache License 2.0 | 5 votes |
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == Constants.REQUEST_QZONE_SHARE || requestCode == Constants.REQUEST_QQ_SHARE) { SocialSDK.shareToQCallback(requestCode, resultCode, data); finish(); } }
Example 13
Source File: ShareActivity.java From ESSocialSDK with Apache License 2.0 | 5 votes |
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == Constants.REQUEST_QZONE_SHARE || requestCode == Constants.REQUEST_QQ_SHARE) { SocialSDK.shareToQCallback(requestCode, resultCode, data); } }
Example 14
Source File: TXShare.java From sdk3rd with Apache License 2.0 | 4 votes |
@Override public void onResult(int requestCode, int resultCode, Intent data) { if (requestCode == Constants.REQUEST_QQ_SHARE || requestCode == Constants.REQUEST_QZONE_SHARE) { Tencent.onActivityResultData(requestCode, resultCode, data, mListener); } }