TLD
TLD

Reputation: 8135

get value from sensor while phone is in standby mode

is there a change that i can get value from my phone's sensor when it is in sleep mode? If it can, which android version can do that? Thank you.

Upvotes: 0

Views: 283

Answers (1)

Serdar Dogruyol
Serdar Dogruyol

Reputation: 5157

I assume that you can do so if your application is a background service which means can run even if it's not foreground you can keep track of accelerometer.

Even if the phone is in standby mode you just need to write your application as a service which is running as a background process and tracking the accelerometer sensor by doing so.

Upvotes: 1

Related Questions