Advertisement
optimalcstrike

Untitled

May 9th, 2011
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 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. this.publishProgress();
  16. return null;
  17. }
  18.  
  19.  
  20. @Override
  21. protected void onProgressUpdate(Void... values) {
  22. // TODO Auto-generated method stub
  23. driver.UIupdate();
  24. super.onProgressUpdate(values);
  25. }
  26.  
  27. @Override
  28. protected void onPostExecute(Void result) {
  29. // TODO Auto-generated method stub
  30. super.onPostExecute(result);
  31.  
  32. }
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement