import android.app.UiModeManager;
import android.content.BroadcastReceiver;
import android.content.Context;
+import android.content.ContentResolver;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
Cursor cur;
try {
- cur = managedQuery(
+ cur = getContentResolver().query(
queryUri,
WEATHER_CONTENT_COLUMNS,
null,
mWeatherLowTemperatureString = "";
}
+ if (cur != null) {
+ // clean up cursor
+ cur.close();
+ }
+
mHandy.sendEmptyMessage(UPDATE_WEATHER_DISPLAY_MSG);
}