В нашем приложении мы хотим интегрировать Android-диалог по умолчанию Android. Тот же диалог, который появляется, когда GPS выключен, и мы нажимаем кнопку моего местоположения в приложениях Google Maps. Также добавили изображение диалогового окна, которое я хочу интегрировать.
- Нажав на кнопку "Нет", вы закроете диалоговое окно.
- Нажав на кнопку "Да", вы активируете GPS-устройство напрямую.
Диалоговое окно для приложения OLA Ниже (ANDROID L):
Диалоговое окно для приложения OLA Ниже (ANDROID KIT_KAT):
Диалоговое окно отображается для карты Google ниже (ANDROID L):
Наша существующая реализация - когда GPS выключен, мы перенаправляем приложение на экран настроек местоположения по умолчанию устройства, откуда он может включить местоположение.
с нетерпением жду ответа. Спасибо заранее.