本文整理汇总了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();
}