I'm working on an Android app that wants to use Google Cloud Messaging. This in turn requires Google Play Services. The Android developer site goes through how to check whether Google Play Services is available, and if not use an error code to be passed on to GooglePlayServicesUtil.getErrorDialog(), to display a localized dialog allowing the user to jump to Play Store to install Google Play Services or Settings to enable it.

An initial test following this logic for the SERVICE_MISSING condition displays a dialog that says "This app won't run without Google Play services, which are missing from your phone."

However, in my case, Google Cloud Messaging (and therefore Google Play Services) is wanted only to support an optional feature. It is incorrect to say that the app "won't run". But that text comes from within GooglePlayServicesUtil.

Instead of using getErrorDialog() I could construct my own dialog with the text of my choice, but as far as I can see the Play Store URL for Play Services is not publicly available. I haven't experimented yet, but I can foresee a similar problem looming for the SERVICE_DISABLED path.

Anyone know of a way to mesh app-specific text with GooglePlayServicesUtil's secretive actions?