本文整理匯總了Java中cn.sharesdk.framework.ShareSDK.stopSDK方法的典型用法代碼示例。如果您正苦於以下問題:Java ShareSDK.stopSDK方法的具體用法?Java ShareSDK.stopSDK怎麽用?Java ShareSDK.stopSDK使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類cn.sharesdk.framework.ShareSDK
的用法示例。
在下文中一共展示了ShareSDK.stopSDK方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: stopWork
import cn.sharesdk.framework.ShareSDK; //導入方法依賴的package包/類
/**終止工作,以便正確作啟動次數等相關統計。
* 隻應該在{@link AbsApp#onExit()}或{@link AbsActivity#onDestroyToExit()}時被調用。**/
public static void stopWork() {
try {
//api文檔表示該方法已過時
//ShareSDK.stopSDK(context);
ShareSDK.stopSDK();
} catch(Exception e) { //文檔沒有明確說明多次調用或沒有initSDK()會出現的情況
L.w(ShareSdk.class, e);
}
stopSMS();
}
示例2: onDestroy
import cn.sharesdk.framework.ShareSDK; //導入方法依賴的package包/類
@Override
protected void onDestroy() {
if (mLoginDlg != null){
mLoginDlg.dismissAllowingStateLoss();
mLoginDlg = null;
}
ShareSDK.stopSDK(this);
super.onDestroy();
}
示例3: onDestroy
import cn.sharesdk.framework.ShareSDK; //導入方法依賴的package包/類
@Override
protected void onDestroy() {
if (mLoginDlg != null){
mLoginDlg.dismissAllowingStateLoss();
}
if (mRegisterDlg != null){
mRegisterDlg.dismissAllowingStateLoss();
}
ShareSDK.stopSDK(this);
super.onDestroy();
}
示例4: onDestroy
import cn.sharesdk.framework.ShareSDK; //導入方法依賴的package包/類
@Override
protected void onDestroy() {
super.onDestroy();
Compact.DestoryInstance();
ToastUtils.DestoryInstance();
ShareSDK.stopSDK();
StorageHelper.clearTmp();
}
示例5: onDestroy
import cn.sharesdk.framework.ShareSDK; //導入方法依賴的package包/類
@Override
protected void onDestroy() {
ShareSDK.stopSDK(this);
super.onDestroy();
}
示例6: onTerminate
import cn.sharesdk.framework.ShareSDK; //導入方法依賴的package包/類
@Override
public void onTerminate() {
super.onTerminate();
ShareSDK.stopSDK(this);
}
示例7: onDestroy
import cn.sharesdk.framework.ShareSDK; //導入方法依賴的package包/類
@Override
protected void onDestroy() {
super.onDestroy();
Compact.DestoryInstance();
ShareSDK.stopSDK();
}
示例8: onDestroy
import cn.sharesdk.framework.ShareSDK; //導入方法依賴的package包/類
@Override
protected void onDestroy() {
super.onDestroy();
ShareSDK.stopSDK();
}