private ReturnModel GetData() { surasList = new ArrayList<HashMap<String, String>>(); surasList = GlobalConfig.GetmyDbHelper().getSearch(query); ReturnModel returnModel = new ReturnModel(); returnModel.setheadlines(surasList); return returnModel; }
private void doMySearch(String query) { ArrayList<HashMap<String, String>> surasList = GlobalConfig.GetmyDbHelper().getSearch(query); String res = query; if (!surasList.isEmpty()) res = query + "-" + surasList.size(); // Toast.makeText(this, res, Toast.LENGTH_SHORT).show(); }