Example #1
0
  private SightWordsReaderDb(Context context) {

    super(context);

    dummyDeepLists = new ArrayList<SightWordList>();
    GenUtil.fillSightWordListDeep(dummyDeepLists);

    dummyWords = new ArrayList<SightWord>();
    GenUtil.fillAllWords(dummyWords);
  }
  public static String getResposeResult(HttpResponse response) {
    HttpEntity entity = response.getEntity();
    if (null == entity) return null;

    try {
      InputStream instream = entity.getContent();
      return GenUtil.convertStreamToString(instream);
    } catch (IOException e) {
    }

    return null;
  }