code: public boolean parseBooleanString(String booleanString) {
          StringReader sr = new StringReader(booleanString);
          StreamTokenizer st = new StreamTokenizer(sr);
          boolean value = false;
          int tokenType;
          try {
              tokenType = st.nextToken();
              if (tokenType == StreamTokenizer.TT_WORD) {
                  if (st.sval.equalsIgnoreCase("true"))
                      value = true;
              }
          } catch (IOException e) {
              Log.e(TAG, "Boolean Error: " + e);
              e.printStackTrace();
          }
          return value;
      }
docs: end parseSingleFloatString