I read the official docs and that bothers me. What is the difference between GooglePlayServicesRepairableException and GooglePlayServicesNotAvailableException . When are they thrown? How to handle these errors? How to show the dialog to the user, where he can enable / update / install services. etc
private void startLocationPicker() { try { new PlacePicker.IntentBuilder().build(this); } catch (GooglePlayServicesRepairableException e) { } catch (GooglePlayServicesNotAvailableException e) { } }
source share