Questions tagged [backgrounding]

Backgrounding is the act of executing an application while it is in the background.

Backgrounding generally refers to the act of executing an application in the background. This expression is widely used in the context of the Apple iOS operating system where a backgrounded application can continue to execute only if it adheres to specific requirements.

39 questions
26
votes
6 answers

How to run a python script in the background?

I have a script that checks something on my PC every 5 minutes and I don't want Python to show on my task tray. I use Windows as my operating system. Is there any way to make Python run in the background and force it to not show in my task tray?
Toto Kama
7
votes
5 answers

beginBackgroundTaskWithExpirationHandler calling endBackgroundTask but not ending process

I have some long running process which I want to run even if application goes in background. I am calling application's beginBackgroundTaskWithExpirationHandler: method and in the expirationBlock I am calling application's endBackgroundTask. Here is…
Kapil Choubisa
  • 5,152
  • 9
  • 65
  • 100
7
votes
2 answers

App "Alarmy" is able to play iTunes song from background state... How?

I've been pouring over all documentation regarding background states and permissions for playing audio in iOS and I can't figure out how a particular app is able to seemingly wake itself at a specific time in the future and play non-bundled sounds.…
BA in NOLA
  • 81
  • 1
  • 3
6
votes
2 answers

iOS: Hiding sensitive information on the screen when app is backgrounded

When a foreground app gets backgrounded (e.g. Home button gets pressed), how can I change elements on the topmost view controller prior to when iOS takes a snapshot of it and starts the animation to show the next screen? I ask because I'm writing an…
curtisdf
  • 4,130
  • 4
  • 33
  • 42
5
votes
1 answer

Does creating new android wakelock with tag return same wakelock every time?

Title can be enigmatic. My question is simple i create wakelock: pwrMgr.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "wakelock1") Then i do this again in another place, with same tag, do i get same wakelock with acquiration references?
Tomasz Kryński
  • 513
  • 4
  • 23
5
votes
2 answers

Backgrounding with Xamarin.Forms

I am currently planning a Xamarin.Forms app and while doing so i came across a point which seems to have no answer. The app will have to work with a WCF Service to get its data and also to tell the service to do certain tasks. While the application…
EaranMaleasi
  • 895
  • 1
  • 13
  • 32
4
votes
1 answer

Allow commands to run after backgrounding django runserver command in a bash script?

I'm writing a 'simple' script to start up the django server, background it then start up firefox while I dev. I've seen the
AncientSwordRage
  • 7,086
  • 19
  • 90
  • 173
3
votes
1 answer

iPhone App backgrounding with MPMusicPlayer

I'm working on an iPhone iOS4 application that incorporates playing music from the user's iPod library. I also want to keep track of what songs have been played and be able to change the song randomly, even while in the background. So I set the…
user25894
  • 71
  • 1
  • 4
3
votes
3 answers

Keeping an Android app running in the background, preventing it from stopping/dying

I've created an App that should keep working while in the background. This seems to work fine for a time, but if I don't use my phone for an extended period I find that it has stopped working, and upon opening it then starts up again. All my…
user2463732
  • 29
  • 2
  • 10
3
votes
1 answer

Add new UIBackgroundMode to an App-Store app with Jailbreak tweak/script

I made an App-Store app and would like to now make a tweak to let it run in the background using the VoIP UIBackgroundMode (keeping a socket open). The UIBackgroundModes are stored in the Info.plist file. What would be the best way to give my app…
newenglander
  • 2,019
  • 24
  • 55
2
votes
1 answer

Xamarin Forms Background Service For Data Sync Even If App Closes

I Want to create a service which run's in background even if my app closes for data sync of Sqlite and mysql. i have tried some methods but unable to achieve my goal. if anyone can give me a sample app which runs a service in the background even if…
2
votes
1 answer

Is there a way for a backgrounded task to inform the terminal to print a new prompt?

I want to write a program that can be run as a backgrounded task (i.e. my-thing &), and that will beautifully provide relevant output when necessary. However, with background tasks that print to the terminal, there's always this annoying little…
ELLIOTTCABLE
  • 17,185
  • 12
  • 62
  • 78
1
vote
0 answers

iOS 5 Audio Backgrounding: Code only runs when audio file playing?

I'd like to understand how audio backgrounding on iOS works. Is it true that an app's code only runs when audio is actively playing or does code always run when I tag the app as using audio backgrounding? Does this mean that if my app isn't already…
user1175914
  • 839
  • 3
  • 9
  • 8
1
vote
1 answer

Xamarin iOS backgrounding app termination

I’m currently developing a timer app for android and iOS. I really care more about iOS for the time being, and even after following Xamarin’s documentation on backgrounding, using messaging center calls to the appDelegate.cs class and then launching…
1
vote
1 answer

How I can create a loop Background Service in Xamarin.forms

I want to create a background service always run and loop a function in Xamarin.Forms, especially is in Android first, i tried Service with timer and Intent Service but not work. Please help me :(
1
2 3