我装了个android2.2 sdk 光模拟器启动用了好几个小时。无语中

解决方案 »

  1.   

       至少在模拟器上要好长时间,而在j2se环境下不到一秒下载完毕了
      

  2.   

    取到网络资源耗时214ms,两者取数据应该没什么效率上的问题的。我的代码如下:
            long start = System.currentTimeMillis();
            HttpClient client = new DefaultHttpClient();
            HttpPost post = new HttpPost("http://hiphotos.baidu.com/19967918/pic/item/8a1f9821a74bbd9f4623e82f.jpg");
            try {
    HttpResponse response = client.execute(post);
    if(response != null){
    Log.i("test", " cost " + (System.currentTimeMillis() - start));
    }else{
    Log.i("test", " fail");
    }
    } catch (Exception e) {
    e.printStackTrace();
    }
      

  3.   

    模拟器根据你pc的ram和cpu性能而定,不可靠,你pc要是2000年的p3的话,可能还要等上几个小时呢