@Raghunandan is right. So, inside your UploadToImgurTask
class you can have:
private Context context;
//in constructor:
public UploadToImgurTask(Context context){
this.context=context;
}
Then in onPostExecute
you can simply use:
Toast.makeText(context, "Uploaded! Link: " + result, Toast.LENGTH_SHORT).show();
Hope this helps you.