response = httpclient.execute(httpGet)无反应

摘自http://www.eoeandroid.com/thread-318906-2-1.html

在onCreat方法中加入

StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
        .detectDiskReads()
        .detectDiskWrites()
        .detectNetwork()   // or .detectAll() for all detectable problems
        .penaltyLog()
        .build());
        StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
                .detectLeakedSqlLiteObjects()
                .detectLeakedClosableObjects()
                .penaltyLog()
                .penaltyDeath()
                .build());


你可能感兴趣的:(response = httpclient.execute(httpGet)无反应)