Darren Oster
Darren Oster

Reputation: 9196

How to keep Windows Phone app running in foreground

I'm building an app for Windows Phone 8, and the nature of the app requires that it keeps running in the foreground with no user interaction (similar to turn-by-turn navigation apps). While I can find plenty of information on how to keep an app running in the background (for location tracking, etc), I can't find anything specifying how to keep the app running in the foreground without locking.

Does anyone know how this is done? Thanks in advance.

Upvotes: 4

Views: 1342

Answers (2)

tivo
tivo

Reputation: 146

Changing IdleDetection is one way, but your application will likely be deactivated and in some cases tombstoned... but there is a better way to increase the chances for your application to keep running, specially if you are doing location tracking take a look to Running location-tracking apps in the background for Windows Phone 8

Upvotes: 0

Henry C
Henry C

Reputation: 4801

Are you looking for IdleDetection on Windows Phone?

Short answer is, you'll need to change the PhoneApplicationService.UserIdleDetectionMode property to Disabled. (Note that you're after UserIdleDetection not ApplicationIdleDetection).

Upvotes: 4

Related Questions