I have seen some apps where you get an in-app reward for installing another app. These are usually able to check whether or not the app is present on the device, and I'm wondering how they're able to do this.
How can I, from an Android app, check if a specific app is installed on the device?