@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;
    }
@Override
    public Loader<Cursor> onCreateLoader(int id, Bundle args) {
       
        String locationSetting = Utility.getPreferredLocation(getActivity());
       
        String sortOrder = WeatherContract.WeatherEntry.COLUMN_DATE + " ASC";
       
        Uri weatherForLocationUri = WeatherContract.WeatherEntry.buildWeatherLocationWithStartDate(locationSetting,
                System.currentTimeMillis());
       
        CursorLoader cursorLoader = new CursorLoader(getActivity(),
                weatherForLocationUri,
                FORECAST_COLUMNS,
                null,
                null,
                sortOrder);
        return cursorLoader;
    }
@override public loader<cursor> oncreateloader(int id, bundle args) { string locationsetting = utility.getpreferredlocation(getactivity()); string sortorder = weathercontract.weatherentry.column_date + " asc"; uri weatherforlocationuri = weathercontract.weatherentry.buildweatherlocationwithstartdate(locationsetting, system.currenttimemillis()); cursorloader cursorloader = new cursorloader(getactivity(), weatherforlocationuri, forecast_columns, null, null, sortorder); return cursorloader; }