sprockets/src/main/java/net/sf/sprockets/content/Intents.java
@Nullable
    public static Intent placePicker(Activity a) {
        int errorCode;
        try {
            return new PlacePicker.IntentBuilder().build(a);
        } catch (GooglePlayServicesNotAvailableException e) {
            errorCode = e.errorCode;
        } catch (GooglePlayServicesRepairableException e) {
            errorCode = e.getConnectionStatusCode();
        }
        GoogleApiAvailability.getInstance()
                .showErrorDialogFragment(a, errorCode, R.id.sprockets_gmsError);
        return null;
    }
@Nullable
    public static Intent placePicker(Activity a) {
        int errorCode;
        try {
            return new PlacePicker.IntentBuilder().build(a);
        } catch (GooglePlayServicesNotAvailableException e) {
            errorCode = e.errorCode;
        } catch (GooglePlayServicesRepairableException e) {
            errorCode = e.getConnectionStatusCode();
        }
        GoogleApiAvailability.getInstance()
                .showErrorDialogFragment(a, errorCode, R.id.sprockets_gmsError);
        return null;
    }
@ Nullable public static Intent placePicker ( Activity a ) { int errorCode ; try { return new PlacePicker . IntentBuilder ( ) . build ( a ) ; } catch ( GooglePlayServicesNotAvailableException e ) { errorCode = e . errorCode ; } catch ( GooglePlayServicesRepairableException e ) { errorCode = e . getConnectionStatusCode ( ) ; } GoogleApiAvailability . getInstance ( ) . showErrorDialogFragment ( a , errorCode , R . id . sprockets_gmsError ) ; return null ; }
Get an Activity Intent that launches a {@link PlacePicker}. If the required version of
Google Play services is not available, an appropriate dialog will be shown and null will be
returned. You can listen for the dismissal of the dialog in
{@link Activity#onActivityResult(int, int, Intent) onActivityResult} with requestCode
{@code R.id.sprockets_gmsError}.

@since 4.0.0
Get an Activity Intent that launches a { @link PlacePicker } . If the required version of Google Play services is not available an appropriate dialog will be shown and null will be returned . You can listen for the dismissal of the dialog in { @link Activity#onActivityResult ( int int Intent ) onActivityResult } with requestCode { @code R . id . sprockets_gmsError } .