|  |  |  | 
|---|
|  |  |  | import android.content.ClipboardManager; | 
|---|
|  |  |  | import android.content.Context; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.secondworld.sdk.AsyncTaskOperator; | 
|---|
|  |  |  | import com.secondworld.sdk.GameApp; | 
|---|
|  |  |  | import com.secondworld.sdk.GameAppProxy; | 
|---|
|  |  |  | import com.secondworld.sdk.utils.CodeU2A; | 
|---|
|  |  |  | import com.secondworld.sdk.utils.LogUtil; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import org.json.JSONException; | 
|---|
|  |  |  | import org.json.JSONObject; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public class CmdCopyContent implements ICommand { | 
|---|
|  |  |  | 
|---|
|  |  |  | public void process(JSONObject json) { | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | String content = json.getString("content"); | 
|---|
|  |  |  | ClipboardManager mgr = (ClipboardManager) GameApp.I.getSystemService( | 
|---|
|  |  |  | ClipboardManager mgr = (ClipboardManager) GameAppProxy.app.getSystemService( | 
|---|
|  |  |  | Context.CLIPBOARD_SERVICE); | 
|---|
|  |  |  | ClipData data = ClipData.newPlainText("playerId", content); | 
|---|
|  |  |  | mgr.setPrimaryClip(data); | 
|---|