1. 复制相应的assets、libs、manifest.xml到项目中
2. 复制需要使用的包:
com.qihoo.gamecenter.sdk.demosp.payment
com.qihoo.gamecenter.sdk.demosp.utils
3. 新建一个类,实现SDK的以下方法:
doSdkLogin
getLoginIntent
mLoginCallback
isCancelLogin
getUserInfo
onGotUserInfo
parseAccessTokenFromLogin
parseUserInfoFromLoginResult
doSdkSwitchAccount
getSwitchAccountIntent
mAccountSwitchCallback
doSdkQuit
mQuitCallback
checkChengNian(int FirstTimeLoginIn)
doSdkAntiAddictionQuery
getAntAddictionIntent
doSdkRealNameRegister
getRealNameRegisterIntent
doSdkPay
getQihooPayInfo
getPayIntent
mPayCallback
4. 更改QihooUserInfo中的url和doRequest方法,将获取的response保存下来
5. 在主Activity中调用Matrix的onCreate和onDestroy方法,以及doSdkQuit
6. 在Jni中实现对应接口