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?
I am not sure what you need the app/installation ID for, but you can review the existing possibilities in a great article from Android developers:
To sum up:
UUID.randomUUID() for creating id on the first time an app runs after installation and simple retrieval afterwardsTelephonyManager.getDeviceId() for actual device identifierSettings.Secure.ANDROID_ID on relatively modern devices