Commit c51a6fd5c03573a65f7c1902432201182ed22d81
1 parent
bfd80f63f7
Exists in
master
modify uid from int to String
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
android/GameSDKSample/src/com/gumptech/loginsdk/sample/MainActivity.java
... | ... | @@ -63,7 +63,7 @@ public class MainActivity extends Activity implements GumpSDK.Callback { |
63 | 63 | Log.d("Main", "activity requestCode:" + requestCode + ",resultCode:" + resultCode); |
64 | 64 | if (requestCode == GumpSDK.LOGIN_REQUEST_CODE) { |
65 | 65 | if (resultCode == RESULT_OK) { |
66 | - int uid = data.getIntExtra("userId", -1); | |
66 | + String uid = data.getStringExtra("userId"); | |
67 | 67 | int accountType = data.getIntExtra("accountType", -1); |
68 | 68 | String sessionkey = data.getStringExtra("sessionKey"); |
69 | 69 | userInfo.setText("userid:" + uid + ",accountType:" + accountType + ",sessionKey:" + sessionkey); |