android device doesn't load google map when there is no wifi
<p>I am testing my android google maps app on my android device. It loads tiles properly when there is wifi access. But it doesn't load tiles when there is no wifi. It just shows black screen.
The code I implemented for it-</p>

<pre><code>    lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); 
    Criteria crit = new Criteria(); 
    crit.setAccuracy(Criteria.ACCURACY_FINE);
    towers = lm.getBestProvider(crit, false);  
    Location location = lm.getLastKnownLocation(towers);   
    if(location != null){
        int lat = (int) (location.getLatitude()*1E6);
        int longi = (int) (location.getLongitude()*1E6);
        GeoPoint ourLocation = new GeoPoint(lat, longi);
    }
</code></pre>
