Advertisement
optimalcstrike

Untitled

May 11th, 2011
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. package com.cody.color;
  2.  
  3. import android.os.AsyncTask;
  4.  
  5. public class GuiThreader extends AsyncTask<Void, Void, Void>{
  6.  
  7. ColorFloodGame game = new ColorFloodGame(6,6);
  8. GUIdriver driver = new GUIdriver(game);
  9.  
  10. public GuiThreader(ColorFloodGame g1){
  11. game = g1;
  12. }
  13.  
  14. protected Void doInBackground(Void... params) {
  15. // TODO Auto-generated method stub
  16. driver.initialize();
  17. return null;
  18. }
  19.  
  20.  
  21.  
  22.  
  23. @Override
  24. protected void onPostExecute(Void result) {
  25. // TODO Auto-generated method stub
  26. super.onPostExecute(result);
  27. driver.updateColors();
  28. }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement