From: Eugene Crosser Date: Mon, 30 Jan 2012 11:14:12 +0000 (+0400) Subject: only can execute every new async task once X-Git-Url: http://average.org/gitweb/?a=commitdiff_plain;h=841436be34e03b2bbfef067e7c82c6e055897495;p=WhereAmI.git only can execute every new async task once --- diff --git a/src/org/average/whereami/WhereAmI.java b/src/org/average/whereami/WhereAmI.java index 5a665d1..aa980ec 100644 --- a/src/org/average/whereami/WhereAmI.java +++ b/src/org/average/whereami/WhereAmI.java @@ -58,11 +58,11 @@ public class WhereAmI extends Activity public UpdateTarget(TextView tv, Integer updater) { this.tv = tv; this.updater = updater; - this.task = new BgUpdate(); } public void launch() { tv.setText(R.string.updating); + task = new BgUpdate(); task.execute(); } } @@ -116,7 +116,7 @@ public class WhereAmI extends Activity boolean wifion = wifiman.setWifiEnabled(true); Log.w("WhereAmI", "enabling wifi result " + wifion); mHandler.postDelayed(resetInfo, 30000); - mHandler.postDelayed(this, 1200000); + mHandler.postDelayed(this, 60000); } };