you mean a service. background tracking uses a foreground service.
the tutorial and the link in it should help you. just remove the location
parts and insert okhttputils2 to post some data to the server every so
often (or to download some data).
get something going, and when there's an error post your code for
some help.
you can also start with a simple service with a timer to see how it
works. then add networking once you're good. if you've never used
services before, you should start that way until you're comfortable.
just remember there can be no user/gui stuff in the service (initially,
you use log entries to keep yourself informed how things are going).