I want to use the following, or similar code, within a mapping application, where the map, although showing, is secondary to getting lats/longs and grid references from the GPS (meaning the map just helps you see where you are, the GPS is returning the true data to the user.
Code to detect if you have a connection:
But, if there is no connection, I'd rather not show the grey, empty map screen that you typically get when looking at a map out of network range. Instead, I would rather show a warning message or something that means the user will at least not panic or get frustrated.
Anyone know if it's possible, and if this code i hacked from StackOverFlow helps?