| | |
| | | if (file.exists()) {
|
| | | file.delete();
|
| | | }
|
| | | MainActivity.getInstance().db.execSQL("delete from offline_unknown where raw_data_path='"+item.getRawDataPath()+"'");
|
| | | MainActivity.getInstance().db.execSQL("delete from offline_surveillance where raw_data_path='"+item.getRawDataPath()+"'");
|
| | | }
|
| | | catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | | }
|
| | |
|
| | | public boolean hasMoreOfflineSurveillance() {
|
| | | boolean hasMore = false;
|
| | | String sql = "select count(*) from offline_surveillance order by create_time ";
|
| | | Cursor c = MainActivity.getInstance().db.rawQuery(sql, new String[]{});
|
| | | if (c.moveToFirst()) {
|
| | | hasMore = c.getInt(0) > 0;
|
| | | }
|
| | | return hasMore;
|
| | | }
|
| | |
|
| | | }
|