• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps AsyncTask/Background Thread (Monodroid)

Has anyone successfully created an AsyncTask class using monodroid? There are numerous java examples out there, but I'm having a real difficult time translating them into C#.

I'm not that familiar with Java programming. The examples in java have a function definition like so:
protected void onProgressUpdate(Integer... progress)
What the heck is the ellipses? I have no clue how to translate that into C#.

I'm also getting errors when trying to send Void as an argument to the AsyncTask<String,Void,Void> creation.

Any suggestions on how I could work around creating a background task in monodroid would be greatly appreciated. I've hit a brick wall here and absolutely have to have background threads for my app.

Thanks!
 
I was actually able to solve this with some help in the monodroid chat channel.

Code:
        class FooBarTask : AsyncTask
        {

            protected override Java.Lang.Object DoInBackground(params Java.Lang.Object[] p)
            {
                // do stuff
                return null;
            }
        }
 
Back
Top Bottom