android: get location from GPS and mobile stations

I was working on a project, where I need to detect location of the device. User needs to tap a button in configuration page and location should be detected.
Detection only by GPS didn’t work on some Samsung devices. Pretty annoying problem, I should say.
So, I added some other methods to get coarse location in case GPS is not accessible for some reason:

Don’t forget to add to Manifest.xml