From: gu.martinm@gmail.com Date: Thu, 4 Sep 2014 19:04:30 +0000 (+0200) Subject: WeatherInformation Android: TODOs/doubts X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=2fdae995ed9e984addc763cef4beafa5bcfece53;p=JavaForFun WeatherInformation Android: TODOs/doubts --- diff --git a/Android/WeatherInformation/src/de/example/exampletdd/fragment/current/CurrentFragment.java b/Android/WeatherInformation/src/de/example/exampletdd/fragment/current/CurrentFragment.java index 5bdd5fa..cc177ad 100644 --- a/Android/WeatherInformation/src/de/example/exampletdd/fragment/current/CurrentFragment.java +++ b/Android/WeatherInformation/src/de/example/exampletdd/fragment/current/CurrentFragment.java @@ -88,8 +88,6 @@ public class CurrentFragment extends Fragment { (WeatherInformationApplication) getActivity().getApplication(); final Current current = application.getCurrent(); - // TODO: Why don't I need mListState? - // TODO: Also check whether data is fresh (like I do on WindowsPhone 8) using data base if (current != null /* && dataIsFresh() */) { this.updateUI(current); @@ -103,8 +101,6 @@ public class CurrentFragment extends Fragment { task.execute(geocodingData); // TODO: make sure UI thread keeps running in parallel after that. I guess. } - - // TODO: Overview is doing things with mListState... Why not here? } @Override @@ -121,8 +117,6 @@ public class CurrentFragment extends Fragment { savedInstanceState.putSerializable("Current", current); } - // TODO: Why don't I need mListState? - super.onSaveInstanceState(savedInstanceState); } @@ -274,6 +268,10 @@ public class CurrentFragment extends Fragment { sunSetTimeView.setText(sunSetTime); } + // TODO: How could I show just one progress dialog when I have two fragments in tabs + // activity doing the same in background? + // I mean, if OverviewTask shows one progress dialog and CurrentTask does the same I will have + // have two progress dialogs... How may I solve this problem? I HATE ANDROID. private class CurrentTask extends AsyncTask { final CustomHTTPClient weatherHTTPClient; final ServiceParser weatherService; diff --git a/Android/WeatherInformation/src/de/example/exampletdd/fragment/overview/OverviewFragment.java b/Android/WeatherInformation/src/de/example/exampletdd/fragment/overview/OverviewFragment.java index 60af117..a326a1b 100644 --- a/Android/WeatherInformation/src/de/example/exampletdd/fragment/overview/OverviewFragment.java +++ b/Android/WeatherInformation/src/de/example/exampletdd/fragment/overview/OverviewFragment.java @@ -256,6 +256,10 @@ public class OverviewFragment extends ListFragment { } + // TODO: How could I show just one progress dialog when I have two fragments in tabs + // activity doing the same in background? + // I mean, if OverviewTask shows one progress dialog and CurrentTask does the same I will have + // have two progress dialogs... How may I solve this problem? I HATE ANDROID. private class OverviewTask extends AsyncTask { final CustomHTTPClient weatherHTTPClient; final ServiceParser weatherService;