title: How to make Android wait?
body: <p>In my program, it is needed to receive user latitude and longitude as soon as GPS is Enabled... I'm using onGpsStatusChanged to constantly check GPS Status and the checking works... The only problem is that it tries to retrieve user location <strong>instantly</strong>, and it returns latitude 0.0 and longitude 0.0 cause it takes some seconds to get those informations... If I try to retrieve some seconds later using clickListener on a button it works perfectly...</p>
  
  <p>Then I thought: If I could make the device wait some seconds <strong>after</strong> GPS is Enabled and only then retrieve the coordinates it would work...</p>
  
  <p>But: If I use another Thread or AsyncTask (already tried both), it keeps returning 0.0 for coordinates, cause the real coordinates are cached into the <strong>Map's Main Activity</strong> Thread...</p>
  
  <p>So, <strong>how to make android wait in the main Thread</strong>? I've tried 'wait(long)' and the app crashes. I'm trying to solve this for weeks and my time is running out... Some holy soul help me please </p>