Make sure your GPS hardware is setup correctly using the GPS control panel in Settings. Once you have your GPS set up, you need to Build and Run the GpsSample to see it work.