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.