This is a migrated thread and some comments may be shown as answers.

kill app

3 Answers 129 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Maor
Top achievements
Rank 1
Maor asked on 08 Apr 2013, 12:01 PM
hi guys
i use icenium to build useful compass app.
i have noticed that when i am closing the app by home button in android or return button, the still have background processes,
to close the app permanently i need to force close the app thru the task manager.
how can i use the "backbutton" event to close app for good? i want to do so because it drain out my battery...
thanks
maor

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 09 Apr 2013, 02:57 PM
Hello Maor,

In general the back button behavior in Android is pretty much undetermined and it acts differently in different scenarios. You can take a look at the backbutton event docs and see if that makes any difference for your scenario.

Greetings,
Steve
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Kendo UI Dojo.
0
Maor
Top achievements
Rank 1
answered on 10 Apr 2013, 05:26 AM
Hi Steve
thanks for the reply.
i investigate already the phoneGap Events Docs...
i use the command "navigator.app.exitApp();"  when backKey event is fired. it only exit app but i still see the gps icon on my notification tray. like its trying to get location. it stops when i clean the memory thru android task manager...
any ideas why
regards 
maor
0
Steve
Telerik team
answered on 10 Apr 2013, 01:07 PM
Hi Maor,

You can use the navigator.geolocation.clearWatch(watchID); which would clear the gps icon from the notification tray. You can check our geolocation sample which does this when you press "Clear Geolocation Watch" button.

Kind regards,
Steve
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Kendo UI Dojo.
Tags
General Discussion
Asked by
Maor
Top achievements
Rank 1
Answers by
Steve
Telerik team
Maor
Top achievements
Rank 1
Share this question
or