Can APP send device data(e.g. accelerometer gyroscope proximity sensor) to the server in the background?
Asked
Active
Viewed 117 times
-4
-
Did you try to google "android background process"? – TDG Nov 30 '17 at 12:51
-
Please do some research before asking here.. !! – Sreeram TP Nov 30 '17 at 12:55
-
Possible duplicate of [Android sensor listening when app in background](https://stackoverflow.com/questions/22093572/android-sensor-listening-when-app-in-background) – SripadRaj Nov 30 '17 at 12:57
-
Thanks for your comments! Next time I'll do more research before I ask – 施冠宏 Dec 04 '17 at 02:14
1 Answers
1
Yes, it is possible to send data in background. In Android, you need to use a service for that type of application. Here you can find a more complet answer.
But be careful with that. It is not a good practice because running the sensors continuously like that would drain the battery quickly.

Ailton Ramos
- 106
- 3
-
-
Both Android and iOS can do this! I just give you a Android example because I am more used to it :) – Ailton Ramos Dec 04 '17 at 16:09