How to Open specific application using intent in android?

前端 未结 1 382
情歌与酒
情歌与酒 2021-01-21 13:44

I want to open an .ics file & i want to make sure that particular app should do that using intent

1条回答
  •  佛祖请我去吃肉
    2021-01-21 14:17

    For opening another app:

    Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage("package.name.of.destination.app");
                        startActivity(LaunchIntent);
    

    Form there the control goes to that app, so if you wanna give some effects, you have to do it in the target app

    0 讨论(0)
提交回复
热议问题