I\'ve got two functions.
First one, getLocation(), gets current location of the device. After getting longitude and latitude I always print them in log,
getLocation()