How to override AsyncTask (Oxygene/Android)

Hi there,

Elements .1621 in VS2012

I am trying to create an async task in Oxygene/Android. I found several threads about AsyncTask, but I can see no solution to my (simple) problem:

type
    SendTask = public class(AsyncTask<String, Integer, Boolean>)
  protected
    method doInBackground(params arg0: array of String): Boolean; override;
  end;

gives me a “No method to override”. What am I doing wrong?

The Java code should be

public class SendTask extends AsyncTask<String, Integer, Boolean>{
    @Override
    protected Boolean doInBackground(String... arg0) {
    ... work ...
    } 
}

Cheers
Bernhard

Use nullable boolean as a result, since Boolean and bool are different types in Java

Ahhhh…
thanks, Carlo!