Android Question Activity.Finish: What does it mean?

Discussion in 'Android Questions' started by Jehoschua, May 8, 2018.

Tags:
  1. Jehoschua

    Jehoschua Member Licensed User

    Good evening

    unfortunately, the Docs https://www.b4x.com/android/help/views.html#activity_finish
    for Activity.Finish is very sparse:
    Therefore my question to understand and prevent Bugs in my App:
    Does Activity.Finish just cleans up internal B4A resources
    or does it handle e.g. necessary Android tasks?

    (I could imagine that B4A sends a signal to Android, for example, that an action has been received and processed so that Android does not have to search for another recipient.)

    if there is a pendant for Activity.Finish in Android Java, then a link in those docs would be very helpful.


    Thanks a lot, kind regards,
    Thomas
     
  2. MarkusR

    MarkusR Well-Known Member Licensed User

    think it closed a form/window and you can not use the back key to open it again.
    it is the opposite of Activity_Create

    at android if you have more than one activity in your app, one is active and the others are in pause mode.

    you can navigate & exchange data between activitys with CallSubDelayed2
     
    Last edited: May 8, 2018
  3. Jehoschua

    Jehoschua Member Licensed User

    Thank you for your answer!, I have to think about it to be sure I've completely understand it :)
     
  4. MarkusR

    MarkusR Well-Known 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