Android 拿出后台打印数据

来源:互联网 发布:江门网络推广公司 编辑:程序博客网 时间:2024/05/20 14:44


  //从result中获取params参数,然后解析params数据,可以获取open_id。                    final String [] strs = new String[2];                    if (result != null) {                        Set<String> keys = result.keySet();                        int index = 0;                        for (String key : keys) {                            strs[index] = result.getString(key);                            Log.e(TAG, key + " = " + result.getString(key));                            index ++;                        }                        SharedPreferences sp = context.getSharedPreferences(                                "UUIDnumber", Context.MODE_PRIVATE);                        String name = sp.getString("uuid_number", "无值");                        HashMap map = new HashMap();                        map.put("param", strs[0]);                        map.put("sign", strs[1]);


0 0
原创粉丝点击