コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }