一:下载SDK放在libs
二:注册QQ
<activity
android:name= "com.tencent.tauth.AuthActivity"
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" />
// 1105602574是官方的ID 要和代码里设置的一样
<data android:scheme ="tencent1105602574" />
</intent-filter >
</activity >
<activity
android:name= "com.tencent.connect.common.AssistActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme= "@android:style/Theme.Translucent.NoTitleBar" />