Android Question Program doesn't restart with Main activity

Discussion in 'Android Questions' started by DrAlex, Jul 28, 2015.

  1. DrAlex

    DrAlex Member Licensed User

    Hello,

    I have the following problem, which seems to have started with B4A version 5.02.

    I run the program by Run (F5) button. It starts correctly, with Main activity. Then I make a change and restart the program by either Stop and Run or by Restart (F11). Now for some reason it starts with a different activity and, understandably, crashes.Only if I go to Tools > Clean Project and then Run, does the program start again with Main activity.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Android is allowed to start the process from a different activity and your app should be prepared for that.

    Are you using B4A-Bridge or usb debug mode?
     
  3. DrAlex

    DrAlex Member Licensed User

    usb debug mode
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    I don't think that it is related to B4A v5 as it uses the same intent as before to start the app (I've just checked it).

    As I wrote before Android is allowed to start the app from the last activity. So you should expect this scenario.
     
  5. DrAlex

    DrAlex Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice