Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Back button calls ondestroy?

Tags:

android

when the back button is being pressed and the current acitivity is being poped, will the ondestroy be called? it seems not be calling for me

like image 518
ericlee Avatar asked Nov 14 '22 14:11

ericlee


1 Answers

Seems like onStop will be called. onPause will be called also on screen lock or incoming calls and etc...

Seems the right way to handle activity pop will be onstop()

like image 56
ericlee Avatar answered Jan 02 '23 06:01

ericlee