Modified service file. Now lat long are recorded from service in background. Now user doesnt need to keep the  activity on to  record the application, just need to start it for the first time.