Я пытаюсь создать диалоговое окно "подсказка", которое информирует пользователя о включении GPS на своем телефоне, уменьшит срок службы батареи. Я хочу, чтобы он всплывал, но имеет флажок, который говорит: "Не спрашивайте меня снова".
Как мне создать это в Android?
Спасибо,
Zukky.
AlertDialog.Builder prompt = new AlertDialog.Builder(this);
prompt.setCancelable(false);
prompt.setTitle("Warning");
prompt.setMessage ("HINT: Otherwise, it will use network to find" +
"your location. It inaccurate but saves on " +
"battery! Switch GPS on for better accuracy " +
"but remember it uses more battery!");