Android Threading
<p>Hey,
So im newish to android and Im lost because although my code uses AsyncTask for it's heavy lifting I am still getting a ANR error when I run my one class. So here is the relevant peices of my code:</p>

<pre><code>package com.cody.color;

import android.app.Activity;
import android.os.Bundle;


public class Play extends Activity{

@Override
protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);     
    System.out.println("about to start threader");
    new GuiThreader().execute();
    System.out.println("Threader finished");
    setContentView(R.layout.colorboard_small);
}
}



package com.cody.color;

import android.os.AsyncTask;

public class GuiThreader extends AsyncTask&lt;Void, Void, Void&gt;{

@Override
protected Void doInBackground(Void... params) {
    // TODO Auto-generated method stub
    System.out.println("threader moving");
    GUIdriver game = new GUIdriver();
    game.play();
    return null;
}

}
</code></pre>
