Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run application in background in Windows Phone?

I want to develop a background application in Windows Phone 8. Like there is a flash screen and after the flash screen starts, immediately it would be moved to back ground.

But the timer present in the application should be active from being in background and keep doing the task assigned. So, in the fore ground user can continue using the device and in background the app will run a timer and continue with the tasks.

I have tried using Periodic tasks, but they get triggered once in 30 minutes and more. But I want this app to be triggered once in 20 seconds.

Kindly help me with some ideas.

like image 339
DeveloperLove Avatar asked Nov 22 '12 13:11

DeveloperLove


People also ask

How do I force an app to run in the background Windows?

Select Start , then select Settings > Privacy > Background apps. Under Background Apps, make sure Let apps run in the background is turned On.

Can Windows 10 Mobile run desktop apps?

Although marketed as a converged platform, and as with Windows Phone 8, using a Windows NT-based kernel, Windows 10 Mobile still cannot run Win32 desktop applications, but is compatible with software designed for Windows Phone 8.


1 Answers

WP7/WP8 don't allow for full multitasking in the background for arbitrary apps. Whatever it is you're trying to accomplish will either have to be achieved in some other way or just not done on windows phone. There's lots of alternative as you've found out: WP7.5 Alarms & Reminders, WP7 Scheduled Tile updates, WP7.5 Periodic Background Agents, Resource Intensive Background Agents, WP8 Geolocation tracking apps, WP7 Push Notifications and more.

The zen of WP7/8 Multitasking is to keep phones healthy both from a battery perspective, memory usage perspective and other resources as well. So, no full background multitasking. Although WP8 improves there with Geolocation tracking apps and Fast Application Resume.

like image 187
JustinAngel Avatar answered Oct 19 '22 07:10

JustinAngel