idle-processing

Android service not working when phone is idle / dozing / locked

前提是你 提交于 2020-02-21 06:17:31
问题 Good evening, I've been trying to achieve something for several days now and I literally don't know what else to try, I've basically tried everything I found online and it still doesn't work but I have the feeling that once I find the solution it must be something quite simple. I'm working on a bigger project, but here I'm just trying to get a very simple example to work which I can later adapt to my project. What I want to do I want to have a counter add +1 every second for 1200 seconds (20

Android service not working when phone is idle / dozing / locked

爱⌒轻易说出口 提交于 2020-02-21 06:15:19
问题 Good evening, I've been trying to achieve something for several days now and I literally don't know what else to try, I've basically tried everything I found online and it still doesn't work but I have the feeling that once I find the solution it must be something quite simple. I'm working on a bigger project, but here I'm just trying to get a very simple example to work which I can later adapt to my project. What I want to do I want to have a counter add +1 every second for 1200 seconds (20

Application.Idle event significance

白昼怎懂夜的黑 提交于 2019-12-29 06:15:13
问题 What I know about the Application.Idle event is that the application is finishing its processing and is about to enter the idle state. I read somewhere that If you have tasks that you must perform before the thread becomes idle, attach them to this event So does this mean the tasks will be performed before the thread becomes idle, or after the thread becomes idle? I have a bit of code in my project, shown below. Is the database update being performed during idle time? private void Application

JavaFX 2 User Idle Detection

牧云@^-^@ 提交于 2019-12-17 19:25:44
问题 I'm trying to make a simple Java transaction app with JavaFX as UI. What I want to do now is to detect user idle state from my application which has 1 primary stage and many scenes. Example : if user idle for 3 minutes then go back to main menu. I already try some examples on the web about how to detect JavaFX idle state, but what I found is always -one function idle state detection which is occuring all scenes- method which is (I think) dangerous for transaction app (ex : apps detect idle

Exception in the OnIdle event does not bubble up

烂漫一生 提交于 2019-12-12 12:02:00
问题 On my main form, I subscribed to two events: Application.ThreadException and Application.Idle. In theory, any exception that is not caught should get bubbled up to the main form. However, this does not work if the exception happens in the OnIdle event. The system just crashes. Does anyone know how to solve this problem? Thanks so much. 回答1: I agree it is not terribly logical to not get the ThreadException event. It does however work this way, a ThreadException is only raised when the message

How to get the idle time in Windows XP using VBA?

空扰寡人 提交于 2019-12-11 06:04:14
问题 I would like to know the current idle time from user input on a given Windows XP machine programmatically. I am using VBA in MS Access. What options do I have? 回答1: I used the following to obtain the solution. Private Declare Function GetTickCount Lib "kernel32" () As Long Private Declare Function GetLastInputInfo Lib "user32" (plii As Any) As Long Private Type LastInputInformation cbSize As Long dwTime As Long End Type Public Function GetUsersIdleTime() As Long Dim lii As

Detect user idle (per application instance)

巧了我就是萌 提交于 2019-12-09 00:52:10
问题 I need user idle detection in my application only (per "my application instance"). I can't use GetLastInputInfo because is session-specific user input : GetLastInputInfo does not provide system-wide user input information across all running sessions. Rather, GetLastInputInfo provides session-specific user input information for only the session that invoked the function. Any suggestions ? 回答1: You could use Application.AddMessageFilter and watch for messages representing user interaction (e.g.

Detect user idle (per application instance)

青春壹個敷衍的年華 提交于 2019-11-30 21:12:55
I need user idle detection in my application only (per "my application instance"). I can't use GetLastInputInfo because is session-specific user input : GetLastInputInfo does not provide system-wide user input information across all running sessions. Rather, GetLastInputInfo provides session-specific user input information for only the session that invoked the function. Any suggestions ? You could use Application.AddMessageFilter and watch for messages representing user interaction (e.g. mouse, keyboard, maybe menu activation). I assume you want to detect the idle time but only when you

Application.Idle event significance

若如初见. 提交于 2019-11-29 04:09:52
What I know about the Application.Idle event is that the application is finishing its processing and is about to enter the idle state. I read somewhere that If you have tasks that you must perform before the thread becomes idle, attach them to this event So does this mean the tasks will be performed before the thread becomes idle, or after the thread becomes idle? I have a bit of code in my project, shown below. Is the database update being performed during idle time? private void Application_Idle(object sender, EventArgs e) { // Update the explorer's menuitems team.UpdateMenu(); // Update

Detect if user Idle on windows universal app

让人想犯罪 __ 提交于 2019-11-27 23:16:21
I'm developing a class library for windows 10 universal apps (mobile and desktop device families only). I need to invoke an event if the user has been idle(no touch, mouse move, key press etc) for x number of seconds. This method can be used to solves this problem on android. But I couldn't find a solution on windows UWP. Is there an API available in UWP to achieve this? You can detect global input with various events on the app's CoreWindow: Touch and mouse input with CoreWindow.PointerPressed, PointerMoved, and PointerReleased. Keyboard input: KeyUp and KeyDown (the soft keys) and