my appwidget gets location to get forecast. as title, cant get location at just after system rebooted.
    LocationManager lm = (LocationManager)mContext.getSystemService(Context.LOCATION_SERVICE);
    Criteria criteria = new Criteria();
    criteria.setBearingRequired(false); 
    criteria.setSpeedRequired(false);   
    criteria.setAltitudeRequired(false);    
    String provider = lm.getBestProvider(criteria, true);
    Location loc = lm.getLastKnownLocation(provider);
    double lat = loc.getLatitude(); //null
    double lon = loc.getLongitude();/null
why these are null at just after system rebooted?