}
@Override
- public void onStart() {
- super.onStart();
+ public void onResume() {
+ super.onResume();
this.mReceiver = new BroadcastReceiver() {
filter.addAction("de.example.exampletdd.UPDATECURRENT");
LocalBroadcastManager.getInstance(this.getActivity().getApplicationContext())
.registerReceiver(this.mReceiver, filter);
- }
-
- @Override
- public void onResume() {
- super.onResume();
final DatabaseQueries query = new DatabaseQueries(this.getActivity().getApplicationContext());
final WeatherLocation weatherLocation = query.queryDataBase();
}
@Override
- public void onStop() {
+ public void onPause() {
LocalBroadcastManager.getInstance(this.getActivity().getApplicationContext()).unregisterReceiver(this.mReceiver);
- super.onStop();
+ super.onPause();
}
private void updateUI(final Current current) {
}
@Override
- public void onStart() {
- super.onStart();
+ public void onResume() {
+ super.onResume();
this.mReceiver = new BroadcastReceiver() {
filter.addAction("de.example.exampletdd.UPDATEFORECAST");
LocalBroadcastManager.getInstance(this.getActivity().getApplicationContext())
.registerReceiver(this.mReceiver, filter);
- }
-
- @Override
- public void onResume() {
- super.onResume();
final DatabaseQueries query = new DatabaseQueries(this.getActivity().getApplicationContext());
final WeatherLocation weatherLocation = query.queryDataBase();
}
@Override
- public void onStop() {
+ public void onPause() {
LocalBroadcastManager.getInstance(this.getActivity().getApplicationContext()).unregisterReceiver(this.mReceiver);
- super.onStop();
+ super.onPause();
}
@Override