Jump to content
Poweramp

dsaran

Approved Members
  • Content Count

    2
  • Joined

  • Last visited

Everything posted by dsaran

  1. try something like this: mContext.getContentResolver().query( PowerAMPiAPI.ROOT_URI.buildUpon().appendEncodedPath("files").build(), new String[] { "_id" }, null, null, null);
  2. Hi, I'm trying to add new songs to a playlist through the API but I'm having a few problems. Uri uri = PowerAMPiAPI.ROOT_URI.buildUpon().appendEncodedPath("playlists").appendEncodedPath(playlistId) .appendEncodedPath("files").build(); ContentValues values = new ContentValues(); values.put("_id", audioId); return activity.getContentResolver().insert(uri, values); I also tried this but with no lucky: Uri uri = PowerAMPiAPI.ROOT_URI.buildUpon().appendEncodedPath("playlists").appendEncodedPath(playlistId).build(); As there is nothing on api demos related to playlists, I'm not sure I'm doing the right thing. My question is if it is possible to change playlist content through ContentProviders and if so, how do I do it? Thanks, Daniel
×
×
  • Create New...