@Override public void onServiceConnected(ComponentName name, IBinder service) { MusicService.MusicBinder binder = (MusicService.MusicBinder) service; musicSrv = binder.getService(); musicSrv.setList(songList); musicSrv.setClientID(oAuthParametersReg.toString()); musicBound = true; musicSrv.setoAuthParameters(oAuthParametersReg); }
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); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); oAuthParametersReg = new OAuthParameters(); oAuthParametersReg.addParameter("client_id", getOAuthConnection().getClientID()); oAuthParametersSearch = oAuthParametersReg; // String song = "12505369"; }