@Override protected final List<LatLong> doInBackground(final Object... args){
  List<LatLong> points=new ArrayList<>();
  DataHelper dbHelper=new DataHelper(mContext);
  final ArrayList<PositionRecord> positions=dbHelper.loadPositions((Integer)args[SESSION_ID],(Double)args[MIN_LAT_COL],(Double)args[MAX_LAT_COL],(Double)args[MIN_LON_COL],(Double)args[MAX_LON_COL]);
  for (  PositionRecord position : positions) {
    points.add(new LatLong(position.getLatitude(),position.getLongitude()));
  }
  return points;
}

@ Override protected final List < LatLong > doInBackground ( final Object ... args ) { List < LatLong > points = new ArrayList < > ( ) ; DataHelper dbHelper = new DataHelper ( mContext ) ; final ArrayList < PositionRecord > positions = dbHelper . loadPositions ( ( Integer ) args [ SESSION_ID ] , ( Double ) args [ MIN_LAT_COL ] , ( Double ) args [ MAX_LAT_COL ] , ( Double ) args [ MIN_LON_COL ] , ( Double ) args [ MAX_LON_COL ] ) ; for ( PositionRecord position : positions ) { points . add ( new LatLong ( position . getLatitude ( ) , position . getLongitude ( ) ) ) ; } return points ; }
queries reference database for all wifis in specified range around map centre .
