Android Question Turn on service when phone is picked up

Dario126

Member
Licensed User
Longtime User
How can I detect if phone is standing still on table, or is picked up by user or eventually is moving around together with user?

I have service which runs in background and needs some data in and out from internet. But there is no use of them if user is not using phone or traveling. Also GPS function (which needed only sometimes) is not useful if phone is standing o table during night.

How can I start something when user start to carry phone around? Any ideas?
 
Top