Geting "is already concentrated, ignoring focus enhancement: com.android.internal.view.IInputMethodClient $ Stub $ Proxy" in Android

When I go from one intention to another, I get this warning:

"The window is already focused, ignoring focus enhancement: com.android.internal.view.IInputMethodClient $ Stub $ Proxy"

and the view remains the same.

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

but when I comment on the fetchandStoreData () method, the intent moves on to another intent. The fetchAndStoreData () method reads XML read data from files, and also stores data in the SQLLite database.

So far, I do not know why this warning occurs.

need urgent help

thanks

+6
android android-intent warnings
source share
5 answers

I had this error when the "MainPage" (initial intent) was not declared in the Manifest file,
try adding:
<android activity: name = ". mainPage" / ">

+5
source share

Another solution: check the onCreate, onResume, etc. methods that open. In my case, I changed the code so that my onCreate method calls this.finish(); to the end of the method. I assume that some kind of race condition occurs when you do this, and every time I open my activity, I get the same in logcat:

 W/InputManagerService( 104): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@46399630 

Fix the action that opens! If you need to close an action immediately after opening, find another way to do it; perhaps using the runOnUiThread method, I don't know.

+4
source share

I had another problem. I was able to change actions once, but no more. I think it was a combination of using Intent.FLAG_ACTIVITY_NO_HISTORY when navigating to the second Activity and using Activity.startActivity to return to the first application. When I switched to using Activity.finish() to leave the second Activity and return to the first, everything worked better.

+3
source share

I have the same problem yesterday, due to a typo in the activity declaration on androidManifest.xml, but even after fixing the error persists.

After restarting Eclipse and the emulator, I received this message in the console: after starting the main activity:

"emulator: the emulator window was out of sight and was the last"

and secondary activity is started without problems.

+1
source share

Some special hidden char or somesuch in mainifest.xml. Insert from another manifest.xml:

 android:screenOrientation="landscape" 

After the problem, delete and enter manually. Then clean, build. And working. Fun

0
source share

All Articles