开始对外Facebook的活动,共享数据会导致警告
Starting External FaceBook activity to share data causes a warning
WARN/InputManagerService(52): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@438edb68
和FB的活动是没有看到的前景。
and the FB activity is not seen on Foreground.
在code我用的是
Intent sendShareIntent = new Intent("com.facebook.katana");
sendShareIntent.setComponent(new ComponentName("com.facebook.katana", "com.facebook.katana.ShareLinkActivity"));
startActivity(sendShareIntent);
我的模拟器有Facebook应用程序中获取它。当与ACTION_SEND作为动作过滤器安装的应用程序我得到com.facebook.katana.ShareLinkActivity。
My emulator has FaceBook Application in it.When getting Applications installed with ACTION_SEND as action filter i'm getting "com.facebook.katana.ShareLinkActivity".
所以,请给我建议的解决方案可以尽快
So Please suggest me solution ASAP
感谢和放大器;问候, 沙
Thanks & Regards, Sha
我决定用这块code我的问题。
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);
这开始了我的分享facebook活动。
This started my Share facebook activity.
有关微博的包是com.twitter.android和类是com.twitter.android.PostActivity
For twitter the package is "com.twitter.android" and class is "com.twitter.android.PostActivity"