GPS

The GPS device can be used using the following command: If you want to pass it to another class, remember to give a context for it to act on. Since the getSystemService doesn't know which context to act upon, it is good to initialize a private context within the class that's being called and use getSystemService there.