Commit 5be652e261ef8f3facabc1b1e9a235643b5fff6f

Authored by 赵康
1 parent 508fb05289
Exists in master

修改文档至v2.3.1

Showing 1 changed file with 2 additions and 16 deletions Side-by-side Diff

doc/AndroidDocument.md
... ... @@ -146,7 +146,7 @@ Help==>About Eclips点击Android对应的图标就可以查看版本了.
146 146 //登录请求返回结果
147 147 if (requestCode == GumpSDK.LOGIN_REQUEST_CODE) {
148 148 if (resultCode == RESULT_OK) {
149   - int uid = data.getIntExtra("userId", -1);
  149 + String uid = data.getIntExtra("userId", -1);
150 150 int accountType = data.getIntExtra("accountType", -1);
151 151 String sessionkey = data.getStringExtra("sessionKey");
152 152  
... ... @@ -156,22 +156,8 @@ Help==>About Eclips点击Android对应的图标就可以查看版本了.
156 156 }
157 157  
158 158 如上将收到成功登录用的userid,此Id标识唯一用户!
159   -3.用户绑定邮箱,并填写密码
160 159  
161   - GumpSDK.boundMail(MainActivity.this);
162   -开发者需要在调用的Activity里重写onActivityResult方法以接受用户的绑定结果,通常如下:
163   -
164   - //绑定邮箱请求返回结果
165   - if (requestCode == GumpSDK.BOUND_REQUEST_CODE) {
166   - if (resultCode == RESULT_OK) {
167   - int uid = data.getIntExtra("userId", -1);
168   - int accountType = data.getIntExtra("accountType", -1);
169   - String sessionkey = data.getStringExtra("sessionKey");
170   - } else if (resultCode == RESULT_CANCELED) {
171   - Toast.makeText(this, "operate be canceled", Toast.LENGTH_SHORT).show();
172   - }
173   - }
174   -4.支付功能
  160 +3.支付功能
175 161 1)使用gump通行证登录
176 162  
177 163 Bundle payInfo = new Bundle();