Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5BBBFBD71 for ; Fri, 6 Jan 2012 09:10:33 +0000 (UTC) Received: (qmail 77470 invoked by uid 500); 6 Jan 2012 09:10:31 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 77267 invoked by uid 500); 6 Jan 2012 09:10:07 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 77193 invoked by uid 99); 6 Jan 2012 09:10:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jan 2012 09:10:01 +0000 X-ASF-Spam-Status: No, hits=-2001.6 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jan 2012 09:09:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 326A813BAB7 for ; Fri, 6 Jan 2012 09:09:39 +0000 (UTC) Date: Fri, 6 Jan 2012 09:09:39 +0000 (UTC) From: "Colin Eberhardt (Commented) (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1142496410.14019.1325840979208.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <888195240.52934.1323336699915.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CB-108) Add "exitApp" for WP7 to quit app programmatically MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13181211#comment-13181211 ] Colin Eberhardt commented on CB-108: ------------------------------------ There is no way to programmatically exit a WP7 application. See the following thread for details: http://social.msdn.microsoft.com/Forums/en/windowsphone7series/thread/8961eac4-880d-4c61-9bd5-8771347514ab There are workarounds, such as throwing an exception: http://www.pchenry.com/Home/tabid/36/EntryId/345/The-way-to-Exit-a-WP7-app-just-seems-wrong-to-me-is-it-just-me.aspx But these are very hacky and would probably cause your application to fail marketplace certification. When the users hits the back-button from the "home page" the framework itself will take care of exiting the application. All you have to do is correctly manage your subscription to the back button as described in this blog post: http://www.scottlogic.co.uk/blog/colin/2011/12/a-simple-multi-page-windows-phone-7-phonegap-example/ I would close this issue. > Add "exitApp" for WP7 to quit app programmatically > -------------------------------------------------- > > Key: CB-108 > URL: https://issues.apache.org/jira/browse/CB-108 > Project: Apache Callback > Issue Type: New Feature > Components: WP7 > Affects Versions: 1.2.0 > Environment: Phonegap 1.2, WP7 > Reporter: Binh An Tran > Assignee: Jesse MacFadyen > Labels: backbutton, quit, wp7 > > For navigation between pages in the app, we need to catch the "backbutton" event. However, in the "Home Page", user should be able to quit the app when click on "Back Button". In Android, we can quit the app by calling "exitApp" method, but this method doesn't exist in WP7, so it's difficult to quit the app programmatically. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira