Add method to check which App Store the Android app is installed from, or if it’s sideloaded.

Spartan Sprint San Jose 2019. I completed my Spartan trifecta on March 17, 2019.

Java Code:

* Get the name of App Store the App is installed from.
public static String getAppStore(Context context) {
String pName = BuildConfig.APPLICATION_ID;

PackageManager packageManager = context.getPackageManager();
String installPM =…



software engineer, read, swim, travel. apps:

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store