How can i get the apk file name and path programmatically?

后端 未结 4 1941
醉话见心
醉话见心 2020-12-18 02:55

I want to get the exact file name of a program if I already know the package name of the target apk. For instance, if I know the package name of my apk, which is com.package

4条回答
  •  被撕碎了的回忆
    2020-12-18 03:36

    PackageManager.getPackageInfo() returns information about the package, and PackageInfo.applicationInfo field has required information about the application.

提交回复
热议问题