本帖最后由 u013489432 于 2014-12-14 09:43:31 编辑

解决方案 »

  1.   

    这个不难啊,http把xml下载下来存储到sdcard中 读文件流就可以了。 网络读取数据 这个很容易的。
      

  2.   

    先下载你的xlm文件,再解析文件
    http文件下载晚上很多的,搜索一下HttpClient client = new DefaultHttpClient();
    HttpParams httpParams = client.getParams();
    HttpConnectionParams.setConnectionTimeout(httpParams, 3000);
    HttpConnectionParams.setSoTimeout(httpParams, 5000);
    HttpResponse response;
    response = client.execute(new HttpGet(Path));
    HttpEntity entity = response.getEntity();
    主要是建立连接,上面的path就是路径
      

  3.   

    不用这么麻烦,你中间那块换成
    String string = new String(EntityUtils.toByteArray(response.getEntity()), "utf-8"); 
    flag = Boolean.parseBoolean(EntityUtils.toString(response.getEntity()).trim());//
      

  4.   

    改为
    String string = new String(EntityUtils.toByteArray(response.getEntity()), "utf-8"); 
    flag = Boolean.parseBoolean(EntityUtils.toString(response.getEntity()).trim());//
      

  5.   

    改为
    String string = new String(EntityUtils.toByteArray(response.getEntity()), "utf-8"); 
    flag = Boolean.parseBoolean(EntityUtils.toString(response.getEntity()).trim());//