How to launch android applications from another application

前端 未结 2 952
暖寄归人
暖寄归人 2021-02-11 10:47

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条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-11 11:37

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

提交回复
热议问题