ShareSDKDemo
ShareSDKDemo copied to clipboard
ShareSDK的基本使用姿势
ShareSDK的使用
测试QQ号:3409609054 szdhm666
集成步骤
1. 申请AppKey
测试用AppKey 17a2846dca760
2. 下载SDK
3. 快速集成
注意
QQ的回调intent,实现QQ的分享必须要添加,并且保证您assets下的sharesdk.xml里配置的QQ的appid与这里的tencent后面的appid保持一致,否则QQ分享是没有回调的,注意替换的时候tencent保留,只替换后面的appid (不需要QQ或者微博可以不配置intent过滤,但是mobuishell这个activity必须要有)
<QQ
Id="7"
SortId="7"
AppId="1105417251"
AppKey="B3BrUNp3GTMfsZcH"
ShareByAppClient="true"
Enable="true" />
<activity
android:name="com.mob.tools.MobUIShell"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:configChanges="keyboardHidden|orientation|screenSize"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden|adjustResize" >
<!-- QQ和QQ空间分享 QQ登录的回调必须要配置的 -->
<intent-filter>
<data android:scheme="tencent1105417251" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<!-- 新浪微博客户端分享回调必须配置 -->
<intent-filter>
<action android:name="com.sina.weibo.sdk.action.ACTION_SDK_REQ_ACTIVITY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>