I apologize for the stupid question, but how can I declare the heir class AsyncTask ? What data types should be in brackets?

Closed due to the fact that off-topic participants Kromster , Alexey Shimansky , HamSter , Sasha Omelchenko , αλεχολυτ 15 Apr '17 at 18:54 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - Kromster, Alexey Shimansky, HamSter, Sasha Omelchenko, αλεχολυτ
If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

     private class ExampleTask extends AsyncTask<Void, Void, JSONArray> { @Override protected JSONArray doInBackground(Void... params) { return null; } @Override protected void onPostExecute(JSONArray result) { super.onPostExecute(result); ... } } 

    Visual demonstration: enter image description here

    • Look please: collabedit.com/fjgjv . I watched for an hour, but it gave nothing (. (Error: (75, 48) error: cannot find symbol variable RequestReceiver Error: (77, 24) error: not find symbol symbol RequestReceiver Error: (260, 25) error: cannot find symbol variable context) - FullyRetarded
    • one
      @ user3807779, This is QA, not a forum. Create a new question (and describe in more detail what does not work). - post_zeew