This is a sample task assigned by The Read Better Company
Task: To implement a service which even executes in background and fetches data from a api continiously on a interval of 2 mins and stores the resulant data in a textfile named sampleDeveloper.txt Service starts on a button click and stops only when user stops.
Approach: Used WakeLock to prevent service termination.