Of course it does work. You are not waiting long enough. As written you need to wait at least 60 seconds or more to acquire a satellite fix and be near a window so your device can get a signal from the gps satellites.
Here is your Project with revised code.
soundRec2forumquestionFixed.aia (7.5 KB)
Try it.
Do you need more help? Try How to put my location on a map - #2 by SteveJG
