android Programming Glossary: sqlselection
AsyncTask keeps waiting? http://stackoverflow.com/questions/8407408/asynctask-keeps-waiting Cursor WODcursor Check if a wod_id is set if _wod_id 1 Grab filters from preferences and at the same time build SQLselection string SharedPreferences prefs getSharedPreferences Preferences 0 String filterNames getResources .getStringArray R.array.filters_values.. getResources .getStringArray R.array.filters_values boolean filterValues new boolean filterNames.length String SQLselection for int i 0 i filterNames.length i filterValues i prefs.getBoolean filterNames i false Build SQL query if filterValues.. i filterNames.length i filterValues i prefs.getBoolean filterNames i false Build SQL query if filterValues i true SQLselection filterNames i 1 OR filterNames i 0 else SQLselection filterNames i 0 Add an AND if there are more filters if i filterNames.length..
|