I\'ve seen this Q&A LocationSettingsRequest dialog - onActivityResult() skipped. It isn\'t the same issue because everything is being done in an Activity already.
Th
If you are running this code in Fragment than don't use startResolutionForResult(). Instead use
startIntentSenderForResult(status.getResolution().getIntentSender(), REQUEST_CODE_LOCATION_SETTING, null, 0, 0, 0, null);
and overrider onaActivityResult() in your fragment. Result will be delivered to this method only.