D
D
Dmitry2015-09-11 10:55:43
Android
Dmitry, 2015-09-11 10:55:43

How to make a blocking dialog on top of everything, waiting for the user's response?

The task is to make a dialog that appears on a timer, requiring the user to enter data, if the data is not entered correctly, then continue to block the user's work until the correct answer (well, or 5-7 incorrect attempts to answer, and then allow the work).
Actually, how to implement a dialog box that would hang on top of everything and prevent the user from working?
Is that possible?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
belozerow, 2015-09-11
@belozerow

DialogFragment
setCancelable(false)

O
Oleg Gamega, 2015-09-11
@gadfi

if you want to honestly process home, then make a launcher application, but there are options)) check in the service through the activity manager what is currently running and if not yours, launch

T
Tiberal, 2015-09-11
@Tiberal

For example, make a fragment dialog, without an action bar, and redefine back so that the user cannot close it. And close it only if the data is correct (call dismiss) or the counter of attempts has reached the required number. Simply.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question