Update basic auth sample

- set targetSdkVersion to 17
- clean up lint warnings
- better error handling when service is not running