@Override
protected void onCreate(Bundle savedInstanceState)
{
//StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().detectDiskReads().detectDiskWrites().detectNetwork().penaltyLog().build()); 
//StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().detectLeakedSqlLiteObjects().detectLeakedClosableObjects().penaltyLog().penaltyDeath().build());

super.onCreate(savedInstanceState);
setContentView(R.layout.pub_login);

findViews();
setListeners();

getLoginParam();

checkUpdate();
}

把上面红色的那两句屏蔽掉后,主线程就不能直接调用webservice了。去掉后,是可以。

05-11 10:50