WARN / InputManagerService(59):窗口已经聚焦,忽略了焦点增益:com.android.internal.view.IInputMethodClient$Stub$Proxy@44f8eb98

时间:2011-06-16 13:02:53

标签: android facebook

我在eshtablishing facebook android sdk连接时遇到此问题.. 当我运行代码时,我在logcat上收到此错误消息:

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

这是我的代码我已经将facebook android sdk改编为我的项目:

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


 }

请帮忙

1 个答案:

答案 0 :(得分:1)

有时这个警告出现在日志中没有充分的理由,您可以忽略它(另请参阅this bugreport)。

但是,如果您遇到问题并且代码无法正常运行,则应检查this postthis post以获取解决方案