How to works Home android default button in my own Android Apps? using Android Studio

34 Views Asked by At

I want to pause my apps music when I click my home button. But I can't access my mobile home button onclick event. How can I access androids default home button event when my apps are runing?

1

There are 1 best solutions below

0
nupadhyaya On

onPause() gets called you press the home button. So you can pause your music there.