本文整理匯總了Java中com.tencent.tauth.Tencent.handleResultData方法的典型用法代碼示例。如果您正苦於以下問題:Java Tencent.handleResultData方法的具體用法?Java Tencent.handleResultData怎麽用?Java Tencent.handleResultData使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.tencent.tauth.Tencent
的用法示例。
在下文中一共展示了Tencent.handleResultData方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onActivityResultByShare
import com.tencent.tauth.Tencent; //導入方法依賴的package包/類
public void onActivityResultByShare(Activity activity,int requestCode, int resultCode, Intent data){
Tencent.onActivityResultData(requestCode, resultCode, data, mShareListener);
if (requestCode == Constants.REQUEST_QQ_SHARE) {
if (resultCode == Constants.ACTIVITY_OK) {
Tencent.handleResultData(data, mShareListener);
}
}else{
String path = null;
if (resultCode == Activity.RESULT_OK && requestCode == 0) {
if (data != null && data.getData() != null) {
// 根據返回的URI獲取對應的SQLite信息
Uri uri = data.getData();
path = QQUtil.getPath(activity, uri);
}
}
Log.d(TAG," user selected path = " + path );
//path may be null;
}
}
示例2: onActivityResult
import com.tencent.tauth.Tencent; //導入方法依賴的package包/類
@Override
public void onActivityResult(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);
}
}
示例3: onActivityResult
import com.tencent.tauth.Tencent; //導入方法依賴的package包/類
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
Tencent.onActivityResultData(requestCode, resultCode, data, new BaseUiListener());
if(requestCode == Constants.REQUEST_API) {
if(resultCode == Constants.REQUEST_LOGIN) {
Tencent.handleResultData(data, new BaseUiListener());
}
}
}
示例4: onActivityResultByLogin
import com.tencent.tauth.Tencent; //導入方法依賴的package包/類
public void onActivityResultByLogin(Activity activity,int requestCode, int resultCode, Intent data){
Tencent.onActivityResultData(requestCode,resultCode,data,mLoginListener);
if(requestCode == Constants.REQUEST_API) {
if(resultCode == Constants.RESULT_LOGIN) {
Tencent.handleResultData(data, mLoginListener);
Log.i(TAG, "-->onActivityResult handle logindata");
}
}
}
示例5: handleResult
import com.tencent.tauth.Tencent; //導入方法依賴的package包/類
@Override
public void handleResult(Intent data) {
Tencent.handleResultData(data, ShareUtil.mShareListener);
}
示例6: handleResult
import com.tencent.tauth.Tencent; //導入方法依賴的package包/類
@Override
public void handleResult(int requestCode, int resultCode, Intent data) {
Tencent.handleResultData(data, mIUiListener);
}
示例7: handleResultData
import com.tencent.tauth.Tencent; //導入方法依賴的package包/類
void handleResultData(Intent data) {
Tencent.handleResultData(data, this.loginUiListener);
}