如何从另一个应用程序打开 instagram 启动器 activity

How to open instagram launcher activity from another app

 Intent hashtagIntent = new Intent(Intent.ACTION_VIEW,
                    Uri.parse("com.instagram.android"));
            startActivity(hashtagIntent);

我正在尝试从我的应用程序启动 Instagram 应用程序。 我试过上面的代码,但它无法打开 Instagram 应用程序。

试试这个

绝对能帮到你

Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.instagram.android");
if (launchIntent != null)
{
    try
    {
        startActivity(launchIntent);
    }
    catch (ActivityNotFoundException ex) // in case Instagram not installed in your device
    {
        ex.printStackTrace();
    }
}