Pijusn
Pijusn

Reputation: 11303

Android global events

I am developing a background application for Android 2.1 and I would like to register listener to handle global events like screen shuts down / screen comes alive / unlocked and stuff like that.

I also would like to know if it's possible to register events like onLowBattery (for example to shutdown my application) or when connected to the internet.

Upvotes: 0

Views: 2616

Answers (1)

Mojo Risin
Mojo Risin

Reputation: 8142

Take a look at Intent documentation. It gives all possible intents for which you can register. For example if you want to register for low batter you should use ACTION_BATTERY_LOW action.

Upvotes: 1

Related Questions