Add number of records to get as a command line parameter.
Move the sockets thread from the activity to the service.
cmdline - update program for changed structures and some minor changes.

Signed-off-by: Tzachi Dar <tzachi.dar@gmail.com>
gradle build don't fail on lint errors.

Signed-off-by: Tzachi Dar <tzachi.dar@gmail.com>
Change data structures to allow debug and better time handling.

Signed-off-by: Tzachi Dar <tzachi.dar@gmail.com>
Add logging to logcat by default.

Signed-off-by: Tzachi Dar <tzachi.dar@gmail.com>
Fix 3 bugs in the socket that caused connections to get lost with time.

Signed-off-by: Tzachi Dar <tzachi.dar@gmail.com>