1. vargai's Avatar
    Hi,
    I have written my very first application to Windows Phone 8.1 in Visual Studio 2013. If I run the application on my phone or in emulator through Visual Studio, it does not close pressing the back button (when I hold the back button it shows up), only by pressing long and X it. Should I resolve it from code or is it only because I deploy it and it will disappear when I upload it to the store?

    Sorry for my English
    09-18-2014 02:24 AM
  2. anon8855939's Avatar
    It's not a bug it's a feature.
    Which was implemented in windows phone 8.1 for faster multi tasking.
    09-18-2014 02:27 AM
  3. vargai's Avatar
    Is there any solution to kill it? Other apps I use close by back button. I would like this on my app too.
    09-18-2014 02:40 AM
  4. colinkiama's Avatar
    Is there any solution to kill it? Other apps I use close by back button. I would like this on my app too.
    All 8.1 apps must behave like this. You can swipe the app down in the multitask screen to close it. Similar to windows 8
    09-18-2014 02:45 AM
  5. anon8855939's Avatar
    Is there any solution to kill it? Other apps I use close by back button. I would like this on my app too.
    There is a solution. First tell me which type of app you are making universal or windows phone etc
    09-18-2014 03:08 AM
  6. vargai's Avatar
    windows phone blank app
    09-18-2014 03:09 AM
  7. anon8855939's Avatar
    I think you are writing your app via Visual Basic right?
    does your code contains
    Public NotInheritable Class MainPage

    Public Sub New()
    InitializeComponent()
    AddHandler Application.Current.Suspending, AddressOf App_Suspending
    End Sub

    End Class
    Last edited by Anshu Goel; 09-18-2014 at 03:34 AM. Reason: confirming the language
    09-18-2014 03:33 AM
  8. vargai's Avatar
    No. I am writing in C#.
    09-18-2014 03:38 AM
  9. anon8855939's Avatar
    oops sorry
    using System;
    using Windows.ApplicationModel;
    using Windows.ApplicationModel.Activation;
    using Windows.UI.Xaml;

    partial class MainPage
    {
    public MainPage()
    {
    InitializeComponent();
    Application.Current.Suspending += new SuspendingEventHandler(App_Suspending);
    }
    }
    this is the module for app suspending
    09-18-2014 03:40 AM
  10. anon8855939's Avatar
    you can also target windows phone 8 while building the app it's more better for you.
    I still don't get it why do you want to eliminate it. It just suspends the app instead of closing it.
    Last edited by Anshu Goel; 09-18-2014 at 04:02 AM.
    09-18-2014 03:44 AM
  11. vargai's Avatar
    I've got this message: The name 'App_Suspending' does not exist in the current context. I used required namespaces.
    I don't have any app which suspends instead of closing and I want my app to react like other popular ones. It is a ticket buying app, nobody uses more than two times a day.
    09-18-2014 04:12 AM
  12. anon8855939's Avatar
    I've got this message: The name 'App_Suspending' does not exist in the current context. I used required namespaces.
    I don't have any app which suspends instead of closing and I want my app to react like other popular ones. It is a ticket buying app, nobody uses more than two times a day.
    I think it's by default you have add app exit. I can't help anymore cause I don't know much about c# you should go to wpcentral developer forum and ask them
    I still suggest you to don't worry as apps like Facebook,Wunderlist and 6cret uses the same feature i.e. They suspends instead of closing when back button is pressed.
    Last edited by Anshu Goel; 09-18-2014 at 04:53 AM.
    09-18-2014 04:41 AM
  13. vargai's Avatar
    Okay Thanks for your help!
    09-18-2014 06:43 AM

Similar Threads

  1. 8.1 Keyboard... Inefficient use of real estate?
    By Reebs Reebs in forum Windows Phone 8.1
    Replies: 8
    Last Post: 09-19-2014, 04:02 PM
  2. L930 back on Nokia India
    By Harneet Singh4 in forum Nokia Lumia 930
    Replies: 27
    Last Post: 09-18-2014, 11:15 PM
  3. Using Nokia Here on L920 with Cyan
    By WPCentral Question in forum Ask a Question
    Replies: 1
    Last Post: 09-18-2014, 03:53 AM
  4. Cant not get into the section "display" in Setting on my Lumia 630
    By WPCentral Question in forum Ask a Question
    Replies: 1
    Last Post: 09-18-2014, 12:50 AM
  5. Plight of the Zombie
    By greedo_greedy in forum Games
    Replies: 0
    Last Post: 09-17-2014, 09:44 PM
LINK TO POST COPIED TO CLIPBOARD