Commit bfe80a4f4b84d39446b2b8e245d031ca1d92f874
0 parents
Exists in
master
guide mark down init
Showing 1 changed file with 41 additions and 0 deletions Side-by-side Diff
guide.md
| ... | ... | @@ -0,0 +1,41 @@ |
| 1 | +##InlandSDK integration guide## | |
| 2 | +###本sdk包含登录和支付功能,支付分为微信支付,支付宝支付和银联支付,因此接入前请申请好各支付渠道的参数### | |
| 3 | +1.获取gump分配的appid和appkey | |
| 4 | +2.导入InlandSDK库工程,并将自己的android工程设置引用此库工程 | |
| 5 | +3.确保AndroidManifest.xml有以下permission: | |
| 6 | + | |
| 7 | + <uses-permission android:name="android.permission.INTERNET" /> | |
| 8 | + <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
| 9 | + <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | |
| 10 | + <uses-permission android:name="android.permission.BLUETOOTH" /> | |
| 11 | + <uses-permission android:name="android.permission.GET_ACCOUNTS" /> | |
| 12 | + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> | |
| 13 | + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
| 14 | + <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" /> | |
| 15 | + <uses-permission android:name="android.permission.WRITE_SETTINGS" /> | |
| 16 | + <!-- 以下是银联支付专用 --> | |
| 17 | + <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> | |
| 18 | + | |
| 19 | +需要在application内增加如下内容: | |
| 20 | + | |
| 21 | + <activity | |
| 22 | + android:name="com.gump.inland.gamesdk.PassportBaseActivity" | |
| 23 | + android:theme="@style/Theme.TransparentWin" > | |
| 24 | + </activity> | |
| 25 | + <activity | |
| 26 | + android:name="com.gump.inland.gamesdk.PaymentActivity" | |
| 27 | + android:theme="@android:style/Theme.Light.NoTitleBar" > | |
| 28 | + </activity> | |
| 29 | + <!-- wx callback --> | |
| 30 | + <activity | |
| 31 | + android:name="yourPackageName.wxapi.WXPayEntryActivity" | |
| 32 | + android:exported="true" > | |
| 33 | + </activity> | |
| 34 | + <!-- unionPay --> | |
| 35 | + <activity | |
| 36 | + android:name="com.unionpay.uppay.PayActivity" | |
| 37 | + android:configChanges="orientation|keyboardHidden" | |
| 38 | + android:excludeFromRecents="true" | |
| 39 | + android:label="@string/app_name" | |
| 40 | + android:screenOrientation="portrait" | |
| 41 | + android:windowSoftInputMode="adjustResize" /> | |
| 0 | 42 | \ No newline at end of file |