I have a class which looks like this:
internal class MyClass
: AsyncTask<string, int, List<List<Dictionary<string, string>>>>
{
protected override void OnPostExecute(List<List<Dictionary<string, string>>> result)
{
}
protected override List<List<Dictionary<string, string>>>
RunInBackground(params string[] jsonData)
{
var routes = new List<List<Dictionary<string, string>>>();
return routes;
}
}
Where AsyncTask
belongs to Android.OS
And find that OnPostExecute
is never executed.
I have other classes which also inherit from AsyncTask
(specifically, AsyncTask<string, string, string>
, but these are working properly - i.e. OnPostExecute
is called when expected.
What causes this, and how can I get around it?