GPSLogger
GPSLogger copied to clipboard
Don't store 'this' in static field
It's not a good idea to store 'this' in a static field. In this case as far as I can tell the method getInstance() is not actually used, so the static field and related code could be dropped.
This applies to GPSService. Unfortunately GPSApplication does the same, however its getInstance is used many times. The static field is not final, and will be overwritten by each call to onCreate. This is not thread-safe.