# Making an app permanently in the foreground

**URL:** <https://community.asterisk.org/t/making-an-app-permanently-in-the-foreground/43434>\
**Category:** Digium Phone API\
**Created:** [July 22, 2013, 8:31pm UTC](https://community.asterisk.org/t/making-an-app-permanently-in-the-foreground/43434 "2013-07-22T20:31:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wallnutmonkeys](https://avatars.discourse-cdn.com/v4/letter/w/ba9def/32.png) [@wallnutmonkeys](https://community.asterisk.org/u/wallnutmonkeys)\
**Post date:** [July 22, 2013, 8:31pm UTC](https://community.asterisk.org/t/making-an-app-permanently-in-the-foreground/43434/1 "2013-07-22T20:31:26Z")

</div>

Hi, me again, im trying to set my app to be in the foreground at all times. Currently something is backgrounding it. Is there another way besides using a timer in which I call digium.foreground(‘myapp’)?

cheers

wallnut

---

<div class="post-metadata">

**Author:** ![sruffell](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/sruffell/32/49_2.png) [@sruffell](https://community.asterisk.org/u/sruffell)\
**Post date:** [July 23, 2013, 5:00pm UTC](https://community.asterisk.org/t/making-an-app-permanently-in-the-foreground/43434/2 "2013-07-23T17:00:10Z")

</div>

Are you looking for [digium.resetIdleTimer()](http://phones.digium.com/phone-api/reference/methods/digiumresetidletimer)? I think you’ll still need to call it in a timer that you set.

Is there a reason you do not want to run a timer?

---

<div class="post-metadata">

**Author:** ![wallnutmonkeys](https://avatars.discourse-cdn.com/v4/letter/w/ba9def/32.png) [@wallnutmonkeys](https://community.asterisk.org/u/wallnutmonkeys)\
**Post date:** [July 23, 2013, 5:42pm UTC](https://community.asterisk.org/t/making-an-app-permanently-in-the-foreground/43434/3 "2013-07-23T17:42:37Z")

</div>

no I dont mind running a timer, I would of prefered someway to tell the phone never to put my app in the background. But the timer will be fine.

thx for the help

wallnut
