Experts...

I am using following line of code (elsewhere from this forum)

bg = googleMap.retrieveStaticImage(buff_x, buff_y, Retriever.lat, Retriever.lon, zoom, "png32")

where googleMap is an instance of GoogleMap and Retriever gives me the lat/long of where I am.

My problem is that when Google Map server is busy, I start getting blank screens, or worse case, hangs the phone needing a reboot.

What is a proper way to wait until I have a proper image before I move on to next step of displaying the retrieved image?