Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know an application is installed from google play or side-load?

I need to detect my application is installed from google play or other market, how could I get this information?

like image 412
ttom Avatar asked May 30 '12 02:05

ttom


People also ask

How do I know if an app is downloaded from Play Store?

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.

How do you check which app is using Google Play services?

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.

Is it possible to get number of downloads of an application from Google Play?

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.

Can you see when you installed an app on Google Play?

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.


1 Answers

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.

like image 177
MattC Avatar answered Sep 21 '22 09:09

MattC