How to launch an Activity from another Application in Android

后端 未结 12 1643
春和景丽
春和景丽 2020-11-21 06:02

I want to launch an installed package from my Android application. I assume that it is possible using intents, but I didn\'t find a way of doing it. Is there a link, where t

12条回答
  •  深忆病人
    2020-11-21 06:36

    private fun openOtherApp() {
            val sendIntent = packageManager.getLaunchIntentForPackage("org.mab.dhyanaqrscanner")
            startActivity(sendIntent)
            finishAffinity()
        }
    

提交回复
热议问题