Example #1
0
 private void getDate() {
   ShellRWSharesPreferences shellRW = new ShellRWSharesPreferences(JoinBuyChange.this, "addInfo");
   phonenum = shellRW.getUserLoginInfo("phonenum");
   sessionid = shellRW.getUserLoginInfo("sessionid");
   // 读取数据
   Bundle bundle = getIntent().getExtras();
   zhushu = bundle.getString("zhushu"); // 读出数据
   allAmt = bundle.getString("allAmt"); // 读出数据
   lotnoFlg = bundle.getString("lotno"); // 彩种标识七乐彩:QL730双色球:B001时时彩:DT5
   drawway = bundle.getString("drawway");
   muchcontent = bundle.getString("zhuma");
   num = bundle.getString("beishu");
 }
Example #2
0
 // 获得当前期数
 public String getLotno(String string) {
   String error_code;
   String batchcode = "";
   ShellRWSharesPreferences shellRW = new ShellRWSharesPreferences(this, "addInfo");
   String notice = shellRW.getUserLoginInfo(string);
   PublicMethod.myOutput("------------------lotnossq" + notice);
   // 判断取值是否为空 cc 2010/7/9
   if (!notice.equals("") || notice != null) {
     try {
       JSONObject obj = new JSONObject(notice);
       error_code = obj.getString("error_code");
       if (error_code.equals("0000")) {
         batchcode = obj.getString("batchCode");
       }
     } catch (JSONException e) {
       e.printStackTrace();
     }
   }
   return batchcode;
 }