|
@@ -460,7 +460,7 @@ public class HostageDBOpenHelper extends SQLiteOpenHelper {
|
|
* @return a list of missing network records.
|
|
* @return a list of missing network records.
|
|
*/
|
|
*/
|
|
public synchronized ArrayList<NetworkRecord> getMissingNetworkRecords(ArrayList<String> otherBSSIDs) {
|
|
public synchronized ArrayList<NetworkRecord> getMissingNetworkRecords(ArrayList<String> otherBSSIDs) {
|
|
- String selectQuery = "SELECT * FROM " + NetworkEntry.TABLE_NAME + " N WHERE " + "N."+NetworkEntry.COLUMN_NAME_BSSID + " NOT IN " + otherBSSIDs;
|
|
|
|
|
|
+ String selectQuery = "SELECT * FROM " + NetworkEntry.TABLE_NAME + " N WHERE " + ""+NetworkEntry.COLUMN_NAME_BSSID + " NOT IN " + otherBSSIDs;
|
|
SQLiteDatabase db = this.getReadableDatabase();
|
|
SQLiteDatabase db = this.getReadableDatabase();
|
|
Cursor cursor = db.rawQuery(selectQuery, null);
|
|
Cursor cursor = db.rawQuery(selectQuery, null);
|
|
ArrayList<NetworkRecord> networkInformation = new ArrayList<NetworkRecord>();
|
|
ArrayList<NetworkRecord> networkInformation = new ArrayList<NetworkRecord>();
|
|
@@ -1816,7 +1816,7 @@ public class HostageDBOpenHelper extends SQLiteOpenHelper {
|
|
*/
|
|
*/
|
|
public ArrayList<String> getMissingDeviceIds(ArrayList<String> devices){
|
|
public ArrayList<String> getMissingDeviceIds(ArrayList<String> devices){
|
|
ArrayList<String> ids = new ArrayList<String>();
|
|
ArrayList<String> ids = new ArrayList<String>();
|
|
- String selectQuery = "SELECT "+ SyncDeviceEntry.COLUMN_NAME_DEVICE_ID +" FROM " + SyncDeviceEntry.TABLE_NAME + " D WHERE D." + SyncDeviceEntry.COLUMN_NAME_DEVICE_ID + " NOT IN " + devices;
|
|
|
|
|
|
+ String selectQuery = "SELECT "+ SyncDeviceEntry.COLUMN_NAME_DEVICE_ID +" FROM " + SyncDeviceEntry.TABLE_NAME + " D WHERE " + SyncDeviceEntry.COLUMN_NAME_DEVICE_ID + " NOT IN " + devices;
|
|
SQLiteDatabase db = this.getReadableDatabase();
|
|
SQLiteDatabase db = this.getReadableDatabase();
|
|
Cursor cursor = db.rawQuery(selectQuery, null);
|
|
Cursor cursor = db.rawQuery(selectQuery, null);
|
|
|
|
|