Buggy code:
public class StartActivity extends Activity implements SharedPreferences . OnSharedPreferenceChangeListener , OnClickListener , OnEditorActionListener { private static final String TAG = "Pd<seq2seq4repair_space>Test" ; private Button play ; private CheckBox ckBass ; private CheckBox ckSnare ; private CheckBox ckMelody ; private CheckBox ckKick ; private CheckBox ckHighHat ; private EditText msg ; private Button prefs ; private TextView logs ; private SeekBar seekBarTempo ; private SeekBar seekBarStyle ; private TextView tvChooseStyle ; private PdService pdService = null ; private Toast toast = null ; LocationProvider provider ; Handler handler ; private void toast ( final String msg ) { } private void post ( final String s ) { } private PdReceiver receiver = new PdReceiver ( ) { private void pdPost ( String msg ) { } @ Override public void print ( String s ) { } @ Override public void receiveBang ( String source ) { } @ Override public void receiveFloat ( String source , float x ) { } @ Override public void receiveList ( String source , Object ... args ) { } @ Override public void receiveMessage ( String source , String symbol , Object ... args ) { } @ Override public void receiveSymbol ( String source , String symbol ) { } } ; private final ServiceConnection pdConnection = new ServiceConnection ( ) { @ Override public void onServiceConnected ( ComponentName name , IBinder service ) { } @ Override public void onServiceDisconnected ( ComponentName name ) { } } ; @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; AudioParameters . init ( this ) ; PdPreferences . initPreferences ( getApplicationContext ( ) ) ; PreferenceManager . getDefaultSharedPreferences ( getApplicationContext ( ) ) . registerOnSharedPreferenceChangeListener ( this ) ; initGui ( ) ; Intent serviceIntent = new Intent ( this , PdService . class ) ; bindService ( serviceIntent , pdConnection , BIND_AUTO_CREATE ) ; DaoMaster . DevOpenHelper helper = new DaoMaster . DevOpenHelper ( this , "forestWaves-db" , null ) ; SQLiteDatabase db = helper . getWritableDatabase ( ) ; DaoMaster daoMaster = new DaoMaster ( db ) ; DaoSession daoSession = daoMaster . newSession ( ) ; TreeDao treeDao = daoSession . getTreeDao ( ) ; if ( ( GooglePlayServicesUtil . isGooglePlayServicesAvailable ( this . getApplicationContext ( ) ) ) == ( ConnectionResult . SUCCESS ) ) { Log . v ( "LocationTest" , "Play<seq2seq4repair_space>Services<seq2seq4repair_space>available" ) ; provider = new LocationProvider ( this , ( ( SensorManager ) ( getSystemService ( SENSOR_SERVICE ) ) ) ) ; handler = new Handler ( ) ; final Runnable runnable = new Runnable ( ) { @ Override public void run ( ) { DaoMaster . DevOpenHelper helper = new DaoMaster . DevOpenHelper ( App . getContext ( ) , "forestWaves-db" , null ) ; SQLiteDatabase db = helper . getWritableDatabase ( ) ; DaoMaster daoMaster = new DaoMaster ( db ) ; DaoSession daoSession = daoMaster . newSession ( ) ; TreeDao treeDao = daoSession . getTreeDao ( ) ; if ( ( provider . getLocation ( ) ) != null ) { Double latitude = provider . getLocation ( ) . getLatitude ( ) ; Double longitude = provider . getLocation ( ) . getLongitude ( ) ; <START_BUG> Query query = treeDao . queryBuilder ( ) . where ( Latitude . between ( ( latitude - ( 0.01 // 111 ) ) , ( latitude + ( 0.01 // 111 ) ) ) , Longitude . between ( ( longitude - ( 0.01 // 76 ) ) , ( longitude + ( 0.01 // 76 ) ) ) ) . build ( ) ; <END_BUG> List < Tree > trees = query . list ( ) ; } handler . postDelayed ( this , 1000 ) ; } } ; handler . post ( runnable ) ; } else { Log . v ( "LocationTest" , ( "Play<seq2seq4repair_space>Services<seq2seq4repair_space>unavailable,<seq2seq4repair_space>" + ( GooglePlayServicesUtil . isGooglePlayServicesAvailable ( this . getApplicationContext ( ) ) ) ) ) ; } } @ Override protected void onDestroy ( ) { } @ Override public void onSharedPreferenceChanged ( SharedPreferences sharedPreferences , String key ) { } private void initGui ( ) { } private void initPd ( ) { } private void startAudio ( ) { } private void stopAudio ( ) { } private void cleanup ( ) { } @ Override public void onClick ( View v ) { } @ Override public boolean onEditorAction ( TextView v , int actionId , KeyEvent event ) { } private void evaluateMessage ( String s ) { } }

Fix:
Query query = treeDao . queryBuilder ( ) . where ( Latitude . between ( ( latitude - ( 0.01 // 111.0 ) ) , ( latitude + ( 0.01 // 111.0 ) ) ) , Longitude . between ( ( longitude - ( 0.01 // 76.0 ) ) , ( longitude + ( 0.01 // 76.0 ) ) ) ) . build ( ) ;