Advertisement
optimalcstrike

Untitled

May 9th, 2011
124
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. public GuiThreader(ColorFloodGame g1){
  10. game = g1;
  11. }
  12.  
  13. protected Void doInBackground(Void... params) {
  14. // TODO Auto-generated method stub
  15. driver.UIupdate();
  16. return null;
  17. }
  18.  
  19.  
  20.  
  21.  
  22. @Override
  23. protected void onPostExecute(Void result) {
  24. // TODO Auto-generated method stub
  25. super.onPostExecute(result);
  26. driver.updateColors();
  27. }
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement