How to get Android application id?


Question

In Android, how do I get the application's id programatically (or by some other method), and how can I communicate with other applications using that id?

1
76
8/12/2009 6:10:16 AM

If your are looking for the value defined by applicationId in gradle, you can simply use

BuildConfig.APPLICATION_ID 
120
8/17/2016 1:52:29 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon