I have implemented some Google Play Game Services features in my Android app as a separate Activity and I am now trying to rewrite my code as an (Action Bar Sherlock) fragme
Shifting 1<<16 is not supported anymore.
You can try call it from your Fragment
private static final int REQUEST_CHECK_SETTINGS = 0x1;
final ResolvableApiException rae = (ResolvableApiException) e;
startIntentSenderForResult(rae.getResolution().getIntentSender(), REQUEST_CHECK_SETTINGS, null, 0, 0, 0, null);
And catch result on Fragment's onActivtyResult like this:
@Override
public void onActivityResult(final int requestCode, final int resultCode, @Nullable final Intent data) {
super.onActivityResult(requestCode, resultCode, data);
switch (requestCode) {
// Check for the integer request code originally supplied to startIntentSenderForResult().
case REQUEST_CHECK_SETTINGS:
switch (resultCode) {
case Activity.RESULT_OK:
// Do smth
break;
case Activity.RESULT_CANCELED:
// show Error
break;
}
break;
}
}