В моей консоли разработчика в разделе «ANR» я могу увидеть отчет о моем приложении. Есть один, который привлекает мое внимание, я не понимаю, как решить предложенную проблему:

Это код функции insertIntoLastPositionKnown:
public synchronized void insertIntoLastPositionKnown(Location coordinate, Context context) {
if (mdb == null)
mdb = mdbHelper.getWritableDatabase();
try {
if (coordinate != null) {
Cursor c = freeQuery("SELECT * FROM " + TABLE_LAST_POSITION);
if (c != null) {
c.moveToFirst();
if (c.getCount() >= 4) {
mdb.execSQL("DELETE FROM " + TABLE_LAST_POSITION + " WHERE idPosition = (SELECT idPosition FROM " + TABLE_LAST_POSITION + " ORDER BY time ASC LIMIT 1)");
}
c.close();
}
//Inserisco la nuova coordinata
ContentValues values = new ContentValues();
values.put("latitude", coordinate.getLatitude());
values.put("longitude", coordinate.getLongitude());
values.put("accuracy", coordinate.getAccuracy());
values.put("speed", coordinate.getSpeed());
values.put("time", coordinate.getTime());
values.put("insDate", new SimpleDateFormat("dd/MM/yyyy HH:mm:ss", new Locale("it_IT")).format(new Date()));
values.put("provider", coordinate.getProvider());
values.put("networkClass", new Utils(context).getNetworkClass());
mdb.insert(TABLE_LAST_POSITION, "", values);
}
} catch (Exception e) {
wil.WriteFile("203)DbGest - Exception: " + e.toString());
}
}
Какова может быть природа этой проблемы?