Questions tagged [task-switching]
24 questions
40
votes
4 answers
Best practices for Alt-Tab support in a DirectX app?
When writing DirectX applications, obviously it's desirable to support the user suspending the application via Alt-Tab in a way that's fast and error-free. What is the best set of practices for ensuring this? Things that need to be addressed…

chaos
- 122,029
- 33
- 303
- 309
10
votes
4 answers
Can task-switching keyboard shortcuts be disabled in W7 using Delphi?
MY application has had a mode for years where the customer can 'disable access to the OS'. Obviously this feature goes against the grain (at least as far as Windows is concerned) but there are installations where my App is the only program that…

Brian Frost
- 13,334
- 11
- 80
- 154
6
votes
2 answers
Disabling the 3D Touch Task Switcher Gesture on the Left Edge of the Screen
If you press firmly on the left edge of the screen using an iPhone with 3D touch you will bring up the task switcher.
I'd like to know how I can disable this behavior in my app.

llama591
- 453
- 5
- 15
5
votes
1 answer
Preventing Sensitive Information From Appearing In The Task Switcher - Apple Code Not Working - iOS 8 glitch?
This document: Preventing Sensitive Information From Appearing In The Task Switcher describes a way to present a view controller in applicationDidEnterBackground so as to hide critical information in the task switcher:
-…

SAHM
- 4,078
- 7
- 41
- 77
2
votes
0 answers
How to correctly set up a task switch via x86 TSS
I'm trying to develop a basic kernel and I'd like to to have it perform a task switch to some code that I load into memory from an attached disk.
I've tried following chapter 7 in intel's manual but my attempts all seem to result in triple…

David
- 487
- 1
- 5
- 18
2
votes
1 answer
Safe "task switching" on ATmega chips
I started implementing something similar to task switching in my app on atmega8. The main idea is that there's a pointer to a "current screen" structure. The "current screen" contains handlers for refreshing the screen, handling buttons and…

viraptor
- 33,322
- 10
- 107
- 191
2
votes
2 answers
Is there a way to handle the task switcher active?
So our app is handling when the app goes to background via this hack found elsewhere:
public static boolean isAppGoingToBackground(Context context)
{
boolean retVal = false;
ActivityManager mgr = (ActivityManager)…

Kevin DiTraglia
- 25,746
- 19
- 92
- 138
2
votes
2 answers
Task switching on Cortext-M3 crashes after IRQ
I've used an exokernel model for my ARM Cortex-M3 OS. When a task wants to read from a UART it calls a library function, which, if there's no data, makes a SVC call to block the task (which causes the kernel to put the task in the wait queue for…

Isvara
- 3,403
- 1
- 28
- 42
1
vote
0 answers
Get the count of currently active windows in the current Activity and Virtual Desktop?
There is a bug in KDE Activities where windows do not get focused and this requires to press Alt+Tab to switch to the last active window.
I want to count the number of the windows to press only when there is some, I tried
xdotool search…

Alsaraha
- 69
- 1
- 7
1
vote
0 answers
Is there a benefit of saving the task context in linked lists rather than an simple stack?
I am trying to find a reason on why Infineon decided to use in it's Tricore architecture linked lists for saving the context of a task (when switching to another task).
The context is saved in fixed size/structure chunks in RAM. Each CSA (context…

Adi Grecu
- 13
- 4
1
vote
0 answers
Android: Open external app, close it and return to original
I'm new to android development, and currently creating an app for remote control to use in a test enviroment.
What I'm trying to do is open an app, in this case netflix, wait for x seconds and then closing the external app and return to my own app.…

Benjamin Larsen
- 345
- 2
- 15
1
vote
0 answers
Android prevent appearing sensitive data at task switcher without secure flag
Android task switcher shows the recent application details with current onpause screen shot. For security reason, I want to remove this screenshot from the task switcher with out implementing secure flag functionality.

Jeyahariprakash
- 70
- 1
- 11
1
vote
1 answer
VisualStudio debugging required for window switching
A bit of background on what I am making first. It is a C# based launcher program which allows easy switching between the main home theatre media players (in my case, Plex, MediaPortal and Kodi), so that they can all be used for their individual…

user3550959
- 41
- 2
- 5
1
vote
2 answers
getting system time in Vxworks
is there anyways to get the system time in VxWorks besides tickGet() and tickAnnounce? I want to measure the time between the task switches of a specified task but I think the precision of tickGet() is not good enough because the the two tickGet()…

Zeinab
- 35
- 1
- 9
1
vote
1 answer
task switching didn't work out
.macro SAVE_CONTEXT SWI_F
ldr sp,=current_p /* switch to pcb */
ldr sp,[sp] /* get pcb ptr */
add sp,sp,#68 /* point to top of stack */
.if (\SWI_F == 0) …

true_casey
- 79
- 1
- 11