ÂÜÀòÂÒÂ×

KW

Kathleen Whelehan

Kathleen Whelehan is currently the Senior Vice President of United Way of Greater Rochester. Prior to this, they were the President and CEO of Upstate Bank from 2011.

package com.example.android.quakereport;

import android.content.AsyncTaskLoader;

import android.content.Context;

import java.util.List;

/**

* Created by jeanne on 15/2/2018.

*/

public class EarthquakeLoader extends AsyncTaskLoader<List<Earthquake>> {

private String mUrl;

public EarthquakeLoader(Context context, String url) {

super(context);

mUrl = url;

}

@Override

protected void onStartLoading() {

forceLoad();

}

@Override

public List<Earthquake> loadInBackground() {

if (mUrl == null) {

return null;

}

List<Earthquake> earthquakes = QueryUtils.fetchEarthquakeData(mUrl);

return earthquakes;

}

}

Links


Org chart

Sign up to view 0 direct reports

Get started