Warning(Window Already Focused, Ignoring Focus Gain).Starting Facebook App From External Activity
Starting External FaceBook activity to share data causes a warning WARN/InputManagerService(52): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMet
Solution 1:
I resolved my problem by using this piece of code.
Intent sendShareIntent = new Intent(Intent.ACTION_SEND);
sendShareIntent.setClassName("com.facebook.katana", "com.facebook.katana.ShareLinkActivity");
sendShareIntent.setType("text/*");
sendShareIntent.putExtra(android.content.Intent.EXTRA_TEXT, "http://www.google.com/");
startActivity(sendShareIntent);
This started my Share facebook activity.
For twitter the package is "com.twitter.android" and class is "com.twitter.android.PostActivity"
Post a Comment for "Warning(Window Already Focused, Ignoring Focus Gain).Starting Facebook App From External Activity"