How to enable Location access programmatically in android? Use below code to check. If it is disabled, dialog box will be generated