From the source code for Location
, it doesn't use the string to do anything meaningful. It just uses it to describe the Location
internally. If you do Location#toString()
, it prints out the co-ordinates, the provider and other details (accuracy, etc). That's all it's used for, internal description.
You can make the provider anything, as seen in this answer: Creating Android Location Object