How to launch android applications from another application

前端 未结 2 1821
我寻月下人不归
我寻月下人不归 2021-02-11 10:37

I want to launch any one of the existing android applications (contacts, call dialer, etc.) from my app upon on click of a button.

All that I know is to get the Intent o

2条回答
  •  萌比男神i
    2021-02-11 11:17

    Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.package.address");
    startActivity(launchIntent);
    

提交回复
热议问题