How To Run Accelerometer On Background?
I need to implement accelerometer running on background service on Android. The thread has to communicate both way and fire event based on accelerometer data. The service has to ru
Solution 1:
Is it possible to implement this task? Which type of service works for this problem?
You will need partial wake lock to prevent the service from being stopped.
Then you can use certain service like Foreground Service as @SushiHangover suggested to track accelerometer data and fire event when necessary.
Post a Comment for "How To Run Accelerometer On Background?"