incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Eberhardt (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-108) Add "exitApp" for WP7 to quit app programmatically
Date Fri, 06 Jan 2012 09:09:39 GMT

    [ 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

        

Mime
View raw message