Skip to content

Instantly share code, notes, and snippets.

@vladimir-ivanov-epam
Created February 16, 2018 17:25
public static LoadWeatherForecastTask extends AsyncTask<String, Void, WeatherForecast> {
private WeakReference<Activity> activityRef;
LoadWeatherForecastTask(Activity activity) {
this.activityRef = new WeakReference<>(activity);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment