MobSDK.init(context, "你的appkey", "你的appsecrect");
6引入activity:
<activity
android:name="com.mob.tools.MobUIShell"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:windowSoftInputMode="stateHidden|adjustResize" >
<!-- 调用新浪原生SDK , 需要注册的回调activity -->
<intent-filter>
<action android:name="com.sina.weibo.sdk.action.ACTION_SDK_REQ_ACTIVITY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.eshore.transporttruck.wxapi.WXEntryActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:exported="true"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<activity
android:name="cn.sharesdk.tencent.qq.ReceiveActivity"
android:launchMode="singleTask"
android:noHistory="true" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="tencentXXXX" />XXXX换成qq的appid
</intent-filter>
</activity>
7SDK初始化:
MobSDK.init(mActivity);
分享函数:
private void showShare() {
OnekeyShare oks = new OnekeyShare();
// 关闭sso授权
oks.disableSSOWhenAuthorize();
// 分享时Notification的图标和文字 2.5.9以后的版本不调用此方法
猜你喜欢
- 光合作用产生什么 光合作用的主要产物
- 解决无数人对安装opencv环境变量疑惑的终极答案
- 怎样提高孩子身高提高孩子身高的方法
- 纯纯的给iPhone X 换手机铃声 啦啦啦
- 莫等闲的下一句 莫等闲的下一句是什么
- 怎么取消移动业务
- 骆姓的来源和历史 骆姓的由来
- 最早的地理学著作什么记录了我国古代地理 中国最早的地理考察著作
- 金鱼怎么分辨公母最简单
- 华为手机怎么取消系统更新的提醒
