本文介绍了WARN / InputManagerService(59):窗口已经集中,忽视聚焦增益:com.android.internal.view.IInputMethodClient$Stub$Proxy@44f8eb98的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么我在Facebook上eshtablishing Android SDK中连接得到这个问题..
当I M运行code I在logcat的收到此错误信息:

i am getting this problem while eshtablishing facebook android sdk connection..when i m running the code i getting this error message on the logcat:

 WARN/InputManagerService(59): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@44f8eb98

这是我的code我已经refrenced Facebook的Andr​​oid SDK中我的项目:

this is my code i have already refrenced facebook android sdk to my project:

package com.conn;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import com.facebook.android.*;
import com.facebook.android.Facebook.*;

 public class MyGreatActivity extends Activity {

Facebook facebook = new Facebook("YOUR_APP_ID");

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    facebook.authorize(this, new String[] { "email", "read_stream" },
 new DialogListener() {
        @Override
        public void onComplete(Bundle values) {}

        @Override
        public void onFacebookError(FacebookError error) {}

        @Override
        public void onError(DialogError e) {}

        @Override
        public void onCancel() {}
    });
}

@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);

    facebook.authorizeCallback(requestCode, resultCode, data);
}


 }

请帮忙

推荐答案

有时,这种警告在日志中没有很好的理由,你可以直接忽略它(见的)。

Sometimes this warning appears in the log for no good reason and you can just ignore it (see also this bugreport).

不过,如果你有问题,你的code功能不正常,你应该检查this帖子或this帖子一个解决方案

However, if you have problems and your code doesn't function properly you should check this post or this post for a solution

这篇关于WARN / InputManagerService(59):窗口已经集中,忽视聚焦增益:com.android.internal.view.IInputMethodClient$Stub$Proxy@44f8eb98的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 10:39