I want to implement such functionality as Native android in phone records, when a user wants to turn on gps at this time by pressing a button, he will be redirected to the Android or IOS settings section so that the user can click on the GPS button. Since we cannot programmatically connect or disconnect GPS on the device directly, we can redirect the user to the setting in order to redirect the user to the setting in the Android and IOS phone
I want to implement below functionality in a telephone bundle, can someone help me.
public boolean canGetLocation() { return this.canGetLocation; } public void showSettingsAlert(){ AlertDialog.Builder alertDialog = new AlertDialog.Builder(mContext);
Abdulqadir_WDDN
source share