//Sort order: Ascending by date
@Override
    public Loader<Cursor> onCreateLoader(int id, Bundle args) {
        //TODO Need a fix to make sure the value is not null
        String locationSetting = Utility.getPreferredLocation(getActivity());
        //Sort order: Ascending by date
        String sortOrder = WeatherContract.WeatherEntry.COLUMN_DATE + " ASC";
        //Build the Uri needed for the query
        Uri weatherForLocationUri = WeatherContract.WeatherEntry.buildWeatherLocationWithStartDate(locationSetting,
                System.currentTimeMillis());
        //Create a cursor loader
        CursorLoader cursorLoader = new CursorLoader(getActivity(),
                weatherForLocationUri,
                FORECAST_COLUMNS,
                null,
                null,
                sortOrder);
        return cursorLoader;
    }
//TODO Need a fix to make sure the value is not null
String locationSetting = Utility.getPreferredLocation(getActivity());
//Sort order: Ascending by date
String sortOrder = WeatherContract.WeatherEntry.COLUMN_DATE + " ASC";
//Build the Uri needed for the query
@Override
public Loader<Cursor> onCreateLoader(int id, Bundle args) {
//TODO Need a fix to make sure the value is not null
String locationSetting = Utility.getPreferredLocation(getActivity());
//Sort order: Ascending by date
String sortOrder = WeatherContract.WeatherEntry.COLUMN_DATE + " ASC";
//Build the Uri needed for the query
Uri weatherForLocationUri = WeatherContract.WeatherEntry.buildWeatherLocationWithStartDate(locationSetting,
System.currentTimeMillis());
//Create a cursor loader
CursorLoader cursorLoader = new CursorLoader(getActivity(),
weatherForLocationUri,
FORECAST_COLUMNS,
null,
null,
@Override
public Loader<Cursor> onCreateLoader(int id, Bundle args) {
//TODO Need a fix to make sure the value is not null
String locationSetting = Utility.getPreferredLocation(getActivity());
//Sort order: Ascending by date
String sortOrder = WeatherContract.WeatherEntry.COLUMN_DATE + " ASC";
//Build the Uri needed for the query
Uri weatherForLocationUri = WeatherContract.WeatherEntry.buildWeatherLocationWithStartDate(locationSetting,
System.currentTimeMillis());
//Create a cursor loader
CursorLoader cursorLoader = new CursorLoader(getActivity(),
weatherForLocationUri,
FORECAST_COLUMNS,
null,
null,
sortOrder);
return cursorLoader;
}