打开分享意图的LinkedIn应用程序?

时间:2016-02-23 19:33:08

标签: android android-intent linkedin sharing

要强行打开Facebook,以下工作:

public void shareFacebook() {
    String fullUrl = "https://m.facebook.com/sharer.php?u=..";
    try {
        Intent sharingIntent = new Intent(Intent.ACTION_SEND);
        sharingIntent.setClassName("com.facebook.katana",
                "com.facebook.katana.ShareLinkActivity");
        sharingIntent.putExtra(Intent.EXTRA_TEXT, "your title text");
        startActivity(sharingIntent);

    } catch (Exception e) {
        Intent i = new Intent(Intent.ACTION_VIEW);
        i.setData(Uri.parse(fullUrl));
        startActivity(i);

    }
}

如何为LinkedIn做到这一点?

0 个答案:

没有答案