1

Is there a universal way to be aware of application switching to background by either pressing "back", "home" or selecting one of other previously opened apps?

Violet Giraffe
  • 32,368
  • 48
  • 194
  • 335
  • 1
    please refer this http://stackoverflow.com/questions/3667022/android-is-application-running-in-background – Juned Oct 17 '12 at 11:01

1 Answers1

4

Your current actvity's onPause() will be called. Reference

Diego
  • 34,802
  • 21
  • 91
  • 134
Aswin Kumar
  • 5,158
  • 5
  • 34
  • 39
  • Thanks! Should have refreshed my memory of `Activity`'s life cycle before asking, but the thought didn't even cross my mind :) – Violet Giraffe Oct 17 '12 at 10:59