开发者

How to get class names of an installed application using packageManager

开发者 https://www.devze.com 2023-03-20 17:58 出处:网络
I know how to get package name of installed application using packageManager . But how to g开发者_高级运维et class names in that package?Use the Context to get the PackageName as well as class name. T

I know how to get package name of installed application using packageManager . But how to g开发者_高级运维et class names in that package?


Use the Context to get the PackageName as well as class name. Try this out->

context.getPackageName();

context.getPackageManager().getClass();


Not sure if you can do that. Class names inside an installed package are usually private data not destined to be shared with anyone and viewed.

On the otherhand, if it would be some .jar file with a public API, you could include in you're project and use it's exposed functionality.

0

精彩评论

暂无评论...
验证码 换一张
取 消