1

I am running a simple FTP server for android. In my application, I am trying to use an AsyncTask. Here is my code:

private class start extends AsyncTask<String,Void,Void> {
    ...
    ...
    @Override
    protected Void doInBackground(String... str) {
    // TODO Auto-generated method stub
   return null;
   }
}

I am getting a syntax error on token "..." and an error saying insert ";" to complete LocalVariableDeclerationStatement. I have looked at the following AsyncTask tutorials: http://android-developers.blogspot.com/2009/05/painless-threading.html http://developer.android.com/reference/android/os/AsyncTask.html

and I have looked at other questions including: Error "Asynctask" And nobody seems to have encountered simmilar errors. Any help would be greatly appreciated.

Community
  • 1
  • 1
user2837058
  • 140
  • 7
  • please post the stacktrace and relevant code. Why are you using AsyncTask if `doInBackGround()` is empty? – Emmanuel Oct 05 '13 at 00:51
  • There is no stacktrace- this is a syntax error. And I left it empty to highlight the fact that even without and code other than what is shown above, I am getting an error on "..." on the DoInBackground line. – user2837058 Oct 05 '13 at 02:34

1 Answers1

0

A syntax error from your IDE rather than a stack trace, right? That syntax looks right unless those first two ellipses are in your code - the one in the method signature is fine; if that one's the problem, I suggest restarting the IDE; they get tripped up sometimes.

Josh
  • 1,563
  • 11
  • 16
  • They are not- they represent other code of mine I didn't feel was necessary to include. Unfortunately, restarting the IDE didn't work. – user2837058 Oct 05 '13 at 02:33