Пример #1
0
 private void initValue() {
   if (TextUtils.isEmpty(SharedPreferencesTool.readStringValue(this, KeyConstant.ip_Address))) {
     SharedPreferencesTool.writeStringValue(
         this,
         KeyConstant.ip_Address,
         "219.223.233.12"); // 219.223.238.80https://github.com/wangyusheng/NewBook3.git
                            // 219.223.238.80
   }
 }
Пример #2
0
 private String getAddress() {
   String ip_address = SharedPreferencesTool.readStringValue(ctx, KeyConstant.ip_Address);
   return "http://" + ip_address + ":8080/Book//bookBusiness";
 }