Can I check latest version of play store from another app?

Anu

How i can check whether play store is available in the mobile device and whether it is the latest a version or not from my app ,before calling an in app service?

Xaver Kapeller

You can check if the Google Play Services are avaiable on the device like this:

int errorCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getActivity());
switch(errorCode) {
    case ConnectionResult.SUCCESS:
        // Google Play Services installed and up to date
        break;

    case ConnectionResult.SERVICE_MISSING:
        // Google Play services is missing on this device.
        break;

    case ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED:
        // The installed version of Google Play services is out of date.
        break;

    case ConnectionResult.SERVICE_DISABLED:
        // The installed version of Google Play services has been disabled on this device.
        break;

    case ConnectionResult.SERVICE_INVALID:
        // The version of the Google Play services installed on this device is not authentic.
        break;

    case ConnectionResult.DATE_INVALID:
        // The device date is likely set incorrectly.
        break;          
}

You can also display an appropriate error message if there is a problem:

int errorCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getActivity());
if(GooglePlayServiceUtil.showErrorDialogFragment(errorCode, getActivity(), REQUEST_CODE)) {
    // There was a problem. Error dialog was shown.
} else {
    // Everything is fine. Error dialog was not shown.
}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

Programmatically check Play Store for app updates

From Java

When can I add In app purchases ? Google Android Play Store

From Java

Can a PWA app be published to app store and play store

From Dev

How to open Google Play Store App from my app to install the latest version of my app available on play store

From Dev

Is there a way to check the Play Store app versionCode?

From Dev

How can I check latest available version of Symfony with any API?

From Dev

How can I crawl all reviews of an app on Google Play Store?

From Dev

I can't update in the Google Play Store: Version error

From Dev

How to have Android app check if latest version (as latest Google Play Store version)?

From Dev

Can't unpublished app from play store

From Dev

What is the minimum version of Xcode I can use for submission to app store

From Dev

No one can write a review for a new app in Google Play Store if I goes from beta to prod

From Dev

How can I check if a PPA has packages for another Ubuntu version?

From Dev

How can I check if a PPA has packages for another Ubuntu version?

From Dev

Can I check App Store for updates programmatically?

From Dev

google play store licensing check -- new app

From Dev

SQLite Database not updating on updating App from Play Store even after incrementing the database version

From Dev

How to have Android app check if latest version (as latest Google Play Store version)?

From Dev

Programatically getting the version code of the app that is in play store

From Dev

Can I change the minSdk from 2.3 to 4 for an existing Google Play Store app with an upgrade

From Dev

How can I keep my app's notification displayed when my app is updated on Google Play store?

From Dev

No one can write a review for a new app in Google Play Store if I goes from beta to prod

From Dev

How can I select the latest version of an object from a ForerunnerDb collection

From Dev

Can the Play Store offer to download a previous version of an app if it's not supported in the device's Android version? (like iOS does)

From Dev

I can not find my app on the Google Play Store

From Dev

My android app in play store says your device isn't compatible with the version, but when i try to install it from apk it is working

From Dev

I don't have previous signature certificate and I want to upload a latest version of my application in play store

From Dev

How to get the app's latest version from Google play?

From Dev

Can I put a second version of my app on Google Play Store

Related Related

  1. 1

    Programmatically check Play Store for app updates

  2. 2

    When can I add In app purchases ? Google Android Play Store

  3. 3

    Can a PWA app be published to app store and play store

  4. 4

    How to open Google Play Store App from my app to install the latest version of my app available on play store

  5. 5

    Is there a way to check the Play Store app versionCode?

  6. 6

    How can I check latest available version of Symfony with any API?

  7. 7

    How can I crawl all reviews of an app on Google Play Store?

  8. 8

    I can't update in the Google Play Store: Version error

  9. 9

    How to have Android app check if latest version (as latest Google Play Store version)?

  10. 10

    Can't unpublished app from play store

  11. 11

    What is the minimum version of Xcode I can use for submission to app store

  12. 12

    No one can write a review for a new app in Google Play Store if I goes from beta to prod

  13. 13

    How can I check if a PPA has packages for another Ubuntu version?

  14. 14

    How can I check if a PPA has packages for another Ubuntu version?

  15. 15

    Can I check App Store for updates programmatically?

  16. 16

    google play store licensing check -- new app

  17. 17

    SQLite Database not updating on updating App from Play Store even after incrementing the database version

  18. 18

    How to have Android app check if latest version (as latest Google Play Store version)?

  19. 19

    Programatically getting the version code of the app that is in play store

  20. 20

    Can I change the minSdk from 2.3 to 4 for an existing Google Play Store app with an upgrade

  21. 21

    How can I keep my app's notification displayed when my app is updated on Google Play store?

  22. 22

    No one can write a review for a new app in Google Play Store if I goes from beta to prod

  23. 23

    How can I select the latest version of an object from a ForerunnerDb collection

  24. 24

    Can the Play Store offer to download a previous version of an app if it's not supported in the device's Android version? (like iOS does)

  25. 25

    I can not find my app on the Google Play Store

  26. 26

    My android app in play store says your device isn't compatible with the version, but when i try to install it from apk it is working

  27. 27

    I don't have previous signature certificate and I want to upload a latest version of my application in play store

  28. 28

    How to get the app's latest version from Google play?

  29. 29

    Can I put a second version of my app on Google Play Store

HotTag

Archive