Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accelerometer in background service?

Tags:

android

Is it possible to read from accelerometer sensor in android while the application is in background ? I've read that its not possible to get touch inputs while being on background is that also true ?

like image 493
Ahmed Saleh Avatar asked Dec 08 '25 09:12

Ahmed Saleh


1 Answers

yes you can read the sensors but you have to implement a service http://developerlife.com/tutorials/?p=356

as for the input android reading user input in a service

like image 101
sherif Avatar answered Dec 09 '25 23:12

sherif



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!