private void addSong(String songID) { String url = UrlBuilder.buildUrlWithParameters( getOAuthConnection().getApiUrl() + "/tracks/" + songID + ".json", oAuthParametersReg); mLoadingSong = songID; setUrlForApiCall(url); mTask = "addSong"; new GetRequestTask().execute(this); }
private void searchSC(String searchFor) { searchFor = searchFor.replaceAll(" ", "_").toLowerCase(); oAuthParametersSearch.addParameter("q", searchFor); String url = UrlBuilder.buildUrlWithParameters( getOAuthConnection().getApiUrl() + "/tracks/", oAuthParametersSearch); setUrlForApiCall(url); mTask = "searchFor"; new GetRequestTask().execute(this); }