Questions tagged [background-foreground]
150 questions
43
votes
2 answers
Use of background/foreground methods in AppDelegate
I'm planning to implement multi-task in my app.
I can see many methods here to do that in the AppDelegate like applicationWillResignActive, applicationDidEnterBackground, applicationWillEnterForeground, ...
But.... I don't see the way they should be…
Oliver
- 21,876
- 32
- 134
- 229
26
votes
2 answers
iphone 4 sdk : detect return from background mode
How can I detect that an app has just returned from "background mode"? I mean, I don't want my app to fetch data (each 60 sec) when the user press the "home button". But, I'd like to make some "special" update the first time the app is in foreground…
Francois
- 9,992
- 6
- 42
- 75
22
votes
1 answer
Detecting the call events in ios
I am new to ios. I was wondering if there is any way to detect the call events like incoming call, outgoing call even if my app is not in foreground. And if yes it is possible then can i read the details about that call like duration, whether it is…
Android Killer
- 17,140
- 11
- 61
- 86
15
votes
6 answers
how to remove background image and get fore image
there are two images
alt text http://bbs.shoucangshidai.com/attachments/month_1001/1001211535bd7a644e95187acd.jpg
alt text http://bbs.shoucangshidai.com/attachments/month_1001/10012115357cfe13c148d3d8da.jpg
one is background image another one is a…
carl
- 305
- 2
- 5
- 12
11
votes
2 answers
node.js: How to spawn detached child in foreground and exit
According to the docs for child_process.spawn I would expect to be able to run a child process in the foreground and allow the node process itself to exit like so:
handoff-exec.js:
'use strict';
var spawn = require('child_process').spawn;
// this…
coolaj86
- 64,368
- 14
- 90
- 108
9
votes
1 answer
iOS app applicationWillEnterForeground and it stuck for a while
I add this function to post a notification when the app enter foreground:
- (void)applicationWillEnterForeground:(UIApplication *)application
{
[[NSNotificationCenter defaultCenter] postNotificationName:…
jxdwinter
- 2,339
- 6
- 34
- 56
8
votes
4 answers
How to properly wait for foreground/background processes in my own shell in C?
In this previous question I posted most of my own shell code. My next step is to implement foreground and background process execution and properly wait for them to terminate so they don't stay as "zombies".
Before adding the possibility to run them…
rfgamaral
- 15,937
- 49
- 156
- 269
8
votes
1 answer
WPF - Modifying Image Colors on the Fly (C#)
Is it possible to modify the colors of an Image in WPF via code (or even using Templates)?
Suppose I have an image which I need to apply to a Tile - which will have a White Foreground color by default and a Transparent Background. Something like…
Andez
- 4,986
- 17
- 67
- 101
7
votes
1 answer
Parameter of BackgroundSubtractorMOG2
I have Problem understanding all Parameter of backgroundsubtractormog2.
I looked in the code (located in bfgf_gaussmix2.cpp), but don't see the connection to the mentioned paper. For exmaple is Tb = varThreshold, but what is the name of Tb in the…
Sebastian Schmitz
- 1,772
- 2
- 19
- 40
7
votes
2 answers
Running celeryd_multi with supervisor
I'm working with djcelery and supervisor.
I was running a celery with supervisor and everything worked fine, once I realized that I needed to change it to celery multi everything broke up.
If I run celeryd_multi in a terminal it works but always run…
user2197042
- 71
- 3
6
votes
1 answer
How to change the highlighted text's Foreground color for a WPF TextBox?
I am working on an application having both WinForms and WPF controls; In case of WinForms TextBox selected text Background color comes Blue and White respectively whereas in WPF TextBox it is LightBlue and Black.
As answered in these questions I can…
akjoshi
- 14,589
- 13
- 94
- 116
5
votes
1 answer
HomeKit - How to update accessory isReachable value, when i come back from background to foreground?
Situation: i am developing an app, which manages HomeKit accessories. For example i do that:
Accessory is power on, and i see it via app. Also in foreground mode HMAccessoryDelegate method:
func accessoryDidUpdateReachability(HMAccessory)
works…
n3lab
- 51
- 2
5
votes
1 answer
Forgeround service stop after a few minutes or locking the phone
I try to create foreground service that toast a message every 20 second but this service stop after a few minutes or locking the phone.
I test this service in android 8 (O).
my code is :
@Override
public int onStartCommand(Intent intent, int flags,…
h.hejabi
- 75
- 9
5
votes
0 answers
SpeakHere audio recorder crash after application comes foreground
I write a small audio recorder/player to use on my iPad, based on SpeakHere audio application example from Apple. When the user asks to display the recorder, a UIView opens and displays the record/stop buttons and the meters.
When I load application…
Denis
- 715
- 5
- 19
4
votes
0 answers
Application Will Enter Foreground Notification and memory
I'm adding my View Controller as a listener to UIApplicationWillEnterForegroundNotification in my viewDidLoad function (as recommended on previous questions here):
if(&UIApplicationWillEnterForegroundNotification != nil)
{
…
Roy Marmelstein
- 67
- 1
- 4