How to get application id from library using my project?

How can I get the application id from the application using my library using gradle?

Or any way to put it in an XML file.

+8
source share
1 answer

You want to get your app id defined in gradle, then this

BuildConfig.APPLICATION_ID 

or you can get it

 Context.getPackageName() 
0
source

All Articles