I am trying to use @Fedor's incredibly helpful code from his answer here: What is the simplest and most robust way to get the user's current location on Android?. However I am a little unsure of how to follow his recommendation of making an instance of MyLocation, and using .getLocation(), when it returns a boolean. Does this mean that I will need to, instead of calling MyLocation in a separate class, work in the MyLocation class? Or should I just create another method in the MyLocation class that returns the LocationResult returned in his getLocation() method, if it is true?
**Possible Solution:**Is the locationResult parameter passed in updated so that I can then derive the location from it after the getLocation call?
Thank you very much for your help. If anything is unclear, please let me know.