@Override protected String doInBackground(String... params) { // TODO Auto-generated method stub SongController songController = SongController.getInstance(); songController.initialSongCategory(); // SCUserController soundCloudUserController = SCUserController.getInstance(); // ApiWrapper wrapper = soundCloudUserController.getApiWrapper(); // try { // HttpResponse resp = wrapper.get(Request.to(ME_FAVORITES)); // stringResponse = Http.getString(resp); // } catch (IOException e) { // // TODO Auto-generated catch block // e.printStackTrace(); // } return null; }
@Override protected String doInBackground(String... params) { // TODO Auto-generated method stub SongController songController = SongController.getInstance(); songController.initialSongCategory(); SCUserController soundCloudUserController = SCUserController.getInstance(); ApiWrapper wrapper = new ApiWrapper(CLIENT_ID, CLIENT_SECRET, null, soundCloudUserController.getToken()); try { HttpResponse resp = wrapper.get(Request.to(ME_FAVORITES)); stringResponse = Http.getString(resp); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; }