Android Question back button igntion

Discussion in 'Android Questions' started by AbbasMohammed, Jul 13, 2015.

  1. AbbasMohammed

    AbbasMohammed Member Licensed User

    Hellow everybody,
    Iam trying to initiate back button press event form an a class and not form activity...and iam wondoring is that possible or not???and how can i do that????
  2. Erel

    Erel Administrator Staff Member Licensed User

    Pass the activity object to the class and then you will be able to close it with Activity.Finish.
    AbbasMohammed likes this.
  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