葛亭"窗口已经集中,忽略了聚焦增益:com.android.internal.view.IInputMethodClient $存根$代理" Android中 [英] Geting "Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy" in Android
问题描述
当我从一个意图去另一个意图,我得到这样的警告:
When I am going from one intent to another intent, I am getting this warning :
窗口早已开始关注,忽略了聚焦增益:com.android.internal.view.IInputMethodClient $存根$代理
"Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy"
和视图停留在旧的意图。
and the view stays on the old intent.
在code是:
btnCatalog.setOnClickListener(new OnClickListener() {
private ProgressDialog myProgressDialog;
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
myProgressDialog = ProgressDialog.show(introPage.this,
"Please wait...", "Doing Extreme Calculations...", true);
new Thread() {
public void run() {
try{
fetchAndStoreData();
Intent toMainPage = new Intent(introPage.this, mainPage.class);
startActivity(toMainPage);
sleep(5000);
} catch (Exception e) { }
myProgressDialog.dismiss();
}
}.start();
}
});
但是当我发表意见的fetchandStoreData()方法,则意图移动到另一个意图。 所述fetchAndStoreData()方法被从文件中读取XML读取数据,并且还将数据保存到数据库SQLLite
but when I comment the fetchandStoreData() method, then the intent moves to another intent. the fetchAndStoreData() method is reading XML reading data from files and also saving data into SQLLite database.
到目前为止,我有不知道为什么这样的警告正在发生。
so far I am having no idea why this warning is occurring.
需要紧急援助
感谢
推荐答案
我有这个错误时,炫魅(启动意图)的清单文件,
未声明
尝试添加:
<活动机器人:炫魅NAME = />
I had this error when "mainPage" (started intent) was not declared on Manifest file,
try to add :
<activity android:name=".mainPage" />
这篇关于葛亭&QUOT;窗口已经集中,忽略了聚焦增益:com.android.internal.view.IInputMethodClient $存根$代理&QUOT; Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!