Questions related to the detecting or handling of inactivity events by the user.
Questions tagged [user-inactivity]
83 questions
1
vote
0 answers
Running a script on inactivity #Javascript #Android
We are using a script on an MDM lockdown designed to run a local script on the SD card of a Samsung TAB A6.
The script we are using is as follows...
(function() {
const idleDurationSecs = 90;
const redirectUrl = '';
let…

Harry
- 11
- 1
1
vote
1 answer
Increasing the inactivity timer Flask app
I am new to development an making an app with Python Flask I want to increase the inactivity timer of my application.Currently I have tried the below mentioned solution but apparently it doesn't work.
app = Flask(__name__)
app.secret_key = "JWT…

Ady
- 21
- 5
1
vote
2 answers
Show popup when user is inactive after 5 minutes
I am trying to show pop up when the user is inactive for 5 minutes.
timeout() {
setTimeout(() => this.openDialog(), 4000);
}
Alert!

njeo
- 41
- 1
- 7
1
vote
2 answers
How Sign out to loginActivity when user inactive using common method for all activities in Android
In my application i want to sign out to loginActivity after 3 min when user inactive
i am currently use this code to do that but in my application there is more than 20 activities
so without pasting this bunch of code every activity i want common…

damith alahakoon
- 270
- 4
- 14
1
vote
0 answers
iPad view changes after x minutes of inactivity
I am writing an app which ideally would go to the start screen after x minutes of inactivity.
How can I achieve this please?

manuelBetancurt
- 15,428
- 33
- 118
- 216
1
vote
1 answer
How to improve CPU usage when automatically "locking" a (WPF) application using Window.PreviewMouseMoveEvent?
Currently I'm using
EventManager.RegisterClassHandler(typeof(Window),
Window.PreviewMouseMoveEvent,
new MouseEventHandler(OnPreviewMouseMove));
where OnPreviewMouseMove just…

rubenvb
- 74,642
- 33
- 187
- 332
1
vote
1 answer
As inactivity logout php
I have a problem with the session in php as I assign a variable inactivity condition to the closing session?
I have this code:
$fechaGuardada = $_SESSION["ultimoacceso"];
$ahora = date("Y-n-j H:i:s");
$tiempo_transcurrido =…

Camaliet
- 59
- 8
1
vote
3 answers
How to detect user inactivity?
I'd like to run a service/background task that would detect user inactivity (that would be touching the screen or unlock the phone).
It would be used to detect that the phone is lost, and then send position informations to a server. Automatically…

Salamandar
- 589
- 6
- 16
1
vote
1 answer
Best practice to detect a loss of a client in an ASP.NET web application
This is not a specific coding question, but more of a best practices advice to a newcomer into the web apps world with years of experience in five-nines telecom software development.
I have an ASP.NET web application that collects data from several…

evolvah
- 625
- 4
- 15
1
vote
1 answer
Are there any javascript/jQuery events that are like an "onmousestop" or any events equivalent to "onmousewheel" for an optical mouse and/or touchpad?
I am trying to create a Javascript-based inactivity timeout for my site. The function which controls inactivity is very simple; a form value recording the "initial time" is reset concomitantly with any event (the assumption being any event should be…

The One and Only ChemistryBlob
- 7,864
- 10
- 36
- 69
1
vote
2 answers
How to close JFrame after user inactivity?
How would I go about closing a JFrame after user inactivity?
So far I have,
Thread.sleep(10000);
I would greatly appreciate it if someone could give me code to do this?
I am new to Java and want to know more about system security

user2269663
- 23
- 1
- 4
1
vote
1 answer
How to detect user inactivity from a apps running in the background?
I'm trying to make an app that warns you when you stop using your phone for a while (so I dont stop doing my work). The functionality would be similar as a screensaver, after some minutes of inactivity would pop a annoying message. So, I made a…

user3286199
- 11
- 1
1
vote
2 answers
Android: How to send a push notification after a certain time of inactivity?
I want to send a push notification from my app if it was inactive (not used on this device) for a certain time of inactivity (for example one week).
I know how to send push notifications but I do not know how to add the time variable.
Hope you have…

Mokkapps
- 2,028
- 9
- 42
- 67
1
vote
1 answer
How to avoid client firewall closing connection because inactivity while processing data on Grails
I have one Grails working on the server on Tomcat. This app is an web interface to export information from the MySQL server. This information can be exported depending on the selection that you did, but takes some time. The biggest part or process…

Marco Zimmerman
- 241
- 3
- 10
1
vote
2 answers
Check whether user is inactive
How do I check user is inactive?
I have this:
class UserActivity : IMessageFilter
{
private double afk_time = 0.1;//minutes
private DateTime last_activity = DateTime.Now;
public static bool inactive = false;
private int…

sczdavos
- 2,035
- 11
- 37
- 71