I need to detect my application is installed from google play or other market, how could I get this information?
On your Android phone, open the Google Play store app and tap the menu button (three lines). In the menu, tap My apps & games to see a list of apps currently installed on your device. Tap All to see a list of all apps you've downloaded on any device using your Google account.
Tap "Apps & Notifications." If your Android device doesn't have this option, tap "Apps." 3. Tap "See all apps" if you have that option. Otherwise, you should already see a list of all your apps.
There is no official way to see the exact number of downloads of an app unless you use external resources. Google Play does, however, give you an approximate number of downloads for each app available on the store. Launch the store app from your smartphone and look up the app you want to check.
You can view the app download history in Google Play Store from the Installed or Library sections of the Store. The Installed section shows you all the apps currently installed on your Android device.
The PackageManager
class supplies the getInstallerPackageName method that will tell you the package name of whatever installed the package you specify. Side-loaded apps will not contain a value.
EDIT: Note @mttmllns' answer below regarding the Amazon app store.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With