views:

51

answers:

1

Hi Guys,

When I am going from one intent to another intent, I am getting this warning :

"Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@43d98340"

and the view stays on the old intent.

the code is :

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(); } });

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.

need urgent help

Thanks

A: 

Hi,
I had this error when "mainPage" (started intent) was not declared on Manifest file,
try to add :
<activity android:name=".mainPage" />

NSchubhan

related questions