Syntax error on token "class"
sendData() is a method syntax, not a class
private class SendData() extends AsyncTask<Void, Void, Void>{
should be
private class SendData extends AsyncTask<Void, Void, Void>{
private class SendData()
You have both method
and class
syntax here. Not sure which one you want.
If you want to define a class then remove ()