| | |
| | | package com.secondworld.sdk.command; |
| | | |
| | | import com.quicksdk.User; |
| | | import com.secondworld.sdk.GameActivityProxy; |
| | | import com.secondworld.sdk.PermissionManager; |
| | | import com.secondworld.sdk.QuickSdkMgr; |
| | | import com.secondworld.sdk.utils.CodeU2A; |
| | | |
| | | import org.json.JSONException; |
| | | import org.json.JSONObject; |
| | | |
| | | public class CmdRequestPermissionStart implements ICommand { |
| | | |
| | | @Override |
| | | public int getCode() { |
| | | return CodeU2A.RequestPermissionStart; |
| | | } |
| | | |
| | | @Override |
| | | public void process(JSONObject json) throws JSONException { |
| | | //QuickSdkMgr.I.requestPermissions(GameActivityProxy.I.activity); |
| | | |
| | | GameActivityProxy.I.activity.runOnUiThread(new Runnable() |
| | | { |
| | | @Override |
| | | public void run() |
| | | { |
| | | QuickSdkMgr.I.requestPermissions(GameActivityProxy.I.activity); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | package com.secondworld.sdk.command;
|
| | |
|
| | | import com.secondworld.sdk.GameActivityProxy;
|
| | | import com.secondworld.sdk.PlatformDiff;
|
| | | import com.secondworld.sdk.QuickSdkMgr;
|
| | | import com.secondworld.sdk.utils.CodeU2A;
|
| | | import com.secondworld.sdk.utils.LogUtil;
|
| | |
|
| | | import org.json.JSONException;
|
| | | import org.json.JSONObject;
|
| | |
|
| | | public class CmdRequestPermissionStart implements ICommand {
|
| | |
|
| | | @Override
|
| | | public int getCode() {
|
| | | return CodeU2A.RequestPermissionStart;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void process(JSONObject json) throws JSONException {
|
| | | GameActivityProxy.I.activity.runOnUiThread(new Runnable()
|
| | | {
|
| | | @Override
|
| | | public void run()
|
| | | {
|
| | | LogUtil.i("SdkManager", "CmdRequestPermissionStart process");
|
| | | QuickSdkMgr.I.requestPermissions(GameActivityProxy.I.activity);
|
| | | PlatformDiff.I.StartRequestPermission();
|
| | | }
|
| | | });
|
| | | }
|
| | | }
|