Android报Window already focused, ignoring focus gain of错问题
public void get4S() {
myDialog = ProgressDialog.show(DZDealersList.this, "请稍等...",
"数据检索中...", true);
new Thread() {
public void run() {
try {
Thread.sleep(2000) ;
pro = searchPro.getText().toString().trim();
beetleList = new WAnalysisFile().searchBeetlsByKeyword(DZDealersList.this, tripId, pro);
Message msg = new Message();
poiHandler.sendMessage(msg);
Log.v("VIBRATOR", "VIBRATOR") ;
} catch (Exception e) {
e.printStackTrace();
} finally {
myDialog.dismiss();
}
}
}.start();
}
private Handler poiHandler = new Handler() {
public void handleMessage(Message msg) {
setDealersAdapter();
}
};
为什么会报Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient错呢。找不到什么原因,求大牛解解