• Announcements

    • andrewilley

      Poweramp v3 Project Update   04/24/2017

      As you may be aware, the Poweramp developer has been working hard on an updated material design user interface for Poweramp v3 which required a full ground-up rebuild of the code and is taking some time to get to a beta-test stage. See the forum thread for more details and to discuss.    


Approved Members
  • Content count

  • Joined

  • Last visited


About TheoKlink

  • Rank
    Advanced Member

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
  • Interests
    Android java programming

Recent Profile Visitors

16,071 profile views
  1. Why complicate matters. Your approach relies on Poweramp not changing its approach to dealing with albumart. It makes far more sense to use the android albumart which is what powramp copies when it scans first time.
  2. Poweramp is what it is. It always amazes me that users feel that they are entitled to any functionality they can think off.
  3. Your approach to get the thumbfile reference is ok. but all you have at this point is the filename. The next step would be to read the .jpg bitsream // First decode with inJustDecodeBounds=true to check dimensions final BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; BitmapFactory.decodeFile(picture, options); // Calculate inSampleSize options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); // Decode bitmap with inSampleSize set options.inJustDecodeBounds = false; return BitmapFactory.decodeFile(picture, options); } public static int calculateInSampleSize( BitmapFactory.Options options, int reqWidth, int reqHeight) { // Raw height and width of image final int height = options.outHeight; final int width = options.outWidth; int inSampleSize = 1; if (height > reqHeight || width > reqWidth) { final int halfHeight = height / 2; final int halfWidth = width / 2; // Calculate the largest inSampleSize value that is a power of 2 and keeps both // height and width larger than the requested height and width. while ((halfHeight / inSampleSize) >= reqHeight && (halfWidth / inSampleSize) >= reqWidth) { inSampleSize *= 2; } } return inSampleSize; } Look on Stackoverflow as there are plenty of examples.. The way I do it is to get the equivalent android albumid and retrieve it using the Mediastore, then get its url album_id = c.getLong(c.getColumnIndex(MediaStore.Audio.Albums._ID)); @Override public Bitmap loadItem(Long id) { Uri sArtworkUri = Uri.parse("content://media/external/audio/albumart"); Uri imageUri = Uri.withAppendedPath(sArtworkUri, String.valueOf(id)); Resources res = mContext.getResources(); int width = res.getDimensionPixelSize(R.dimen.image_width); int height = res.getDimensionPixelSize(R.dimen.image_height); Bitmap bitmap = null; try { bitmap = decodeSampledBitmapFromResource(imageUri, width, height); } catch (Exception e) { e.printStackTrace(); } if (bitmap != null) { mMemCache.put(id, bitmap); }else { /* Uri path = Uri.parse("android.resource://com.newflyingdutchman.newplaylistmanager/" + R.drawable.playlist); bitmap = decodeSampledBitmapFromResource(path, width, height); mMemCache.put(id, bitmap); */ } return bitmap; } However, Poweramp may get its thumb from other locations too, eg the embedded albumart on the mp3 itself. To quote Andre "Poweramp uses internal device storage for caching downloaded album art," but I found nothing using the Poweramp api relating to albumart. Code snippets from smoothie by Lucas Rocha
  4. Can you post sample code of how you try to retrieve the albumart
  5. Simply ensure that Poweramp only scans the folders you want. Settings, Folders and Library, Music Folders. Just tick the folder(s) you want. If all are ticked by default, deselect top level and all will be unticked, then tick your music folders. ps. Do not forget to rescan your library.
  6. If Poweramp cannot do this then you could try my app New Playlist Manager which allows you to select by "date added" and sort by mp3 tags in any combination. I assume you want to sort by albums, then tracks?
  7. The way i see it is that you will always be limited by the lowest common denominator which will be your device or playback app or mp3. However, nothing wrong with posting here and/or bragging as it is interesting to read about.
  8. Poweramp does not import file based playlists. All you need to do is place it in a folder scanned by pa and it will show. Pa does not maintain these playlists so any changes are lost. There have been posts previously on this very subject if it has zero songs, check that its content has the correct file details of each track and that each track exists in that location on your device
  9. If you want to add to a Poweramp playlist using your own code, simple answer is you can't. The api does not provide the insert. As i have stated previously, hopefully the new api has this functionality.
  10. It is a matter of sorting. The titles are treated as text but there is a solution. Read this post:
  11. This issue was discussed in 2016. I found this link https://forums.oneplus.net/threads/paranoid-android-6-0-1-aospa-oneplus-x.450930/
  12. I found several threads with a similar issue, all apparently involving different roms and focussing on Poweramp listing folders. I did not find any solutions though. Given you un and reinstalled Poweramp, clearing pa data will not help. You mention you formatted internal memory and i suspect this is where the issue lies. Perhaps retry this.
  13. Is there an option to look at the bug report?
  14. Not sure what FC means, I assume it crashes, but did you uninstall and reinstall Poweramp ?
  15. Poweramp works a bit counter intuitive but if you open the menu first, select add to playlist, then you can mark all the tracks you want to add. This behaviour is consistent throughout for all sorts of batch operations, for example deleting more than one playlist