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?
Package name is your android app id .
String appId = BuildConfig.APPLICATION_ID
Or
https://play.google.com/store/apps/details?id=com.whatsapp
App Id = com.whatsapp