• 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.    

TheoKlink

Approved Members
  • Content count

    574
  • Joined

  • Last visited

Everything posted by TheoKlink

  1. I have not read the whole thread but i simply use my app to manage playlists and automatically export them as m3u8. Poweramp then picks these up. I never create playlists in Poweramp
  2. One more thing you could try. Uninstall Poweramp and reinstall. Uninstalling will remove the information recorded by android to allow sdcard access. Reinstalling and reapply permissions may work.
  3. When your device notices that something was removed eg sdcard or hd, both android and Poweramp think the music has been deleted and will rescan, removing all references to the now missing files. When you reconnect, scanning will restart, adding the newly found tracks but they will be treated as brand new so any playlists will show empty. Android devices are not really designed to work with external disks.
  4. Step 1. On your old device, export all your Poweramp playlists as m3u8. Settings, Folders and Library, Export Poweramp playlists. Take note of the message as this shows where they are saved. Step 2. Put all your music on the new device, preferably using the same locations, eg storage /sdcard/music Step 3 copy your exported playlists to the new device. Make sure Poweramp is set to scan the folder where they can be found. Step 4 is where you may run into trouble as your new device may no longer show /storage/sdcard but something like /storage/F023-8F/music. If this is the case you need to edit your exported playlists and replace the old path with the new path. Alternatively you could use my app and import your m3u playlists. It does not care about the path and will create an android playlist which again you export as m3u but this time everything will be as required. Good luck
  5. custom filter

    Poweramp does allow creation of playlists based upon its library presentation of genres, albums, artists etc. However, if you are looking for something like smart playlists based upon a number of criteria, you could use my app New Playlist Manager which also has a degree of integration with Poweramp such as saving/restoring your ratings. The comments tag is often mentioned but neither android nor Poweramp read this tag so any playlists based upon these are unlikely.
  6. You have not clearly explained what your issue is with 1 star rating. Poweramp simply saves values 1 to 5. Other music apps may apply a different rating scale. Perhaps this is where your problem originates?
  7. The issue with tags such as bpm or comment is that they generally are not collected by apps when building their media databases. They build this database when scanning for music. Neither Poweramp nor the native android media databases have this field. I doubt very much that this feature will be in the next release. Would be nice if it was.
  8. If you are happily using the version, what is your issue??
  9. You can currently export your playlists as m3u8 files and export configuration settings with Poweramp. What you cannot do at the moment is backup your ratings and times played. That is why i have added functionality to my app New Playlist Manager. You can export/reimport ratings and times played but also update mp3 ratings tags from the Poweramp database or update Poweramp ratings from your mp3 tags.
  10. If you have read this thread then you will find there is a way to backup and restore your ratings.
  11. You can, Library, Folders, List options, view as hierarchy and hey presto
  12. Just to let the forum know that a new release is imminent which will update mp3 tags for tracks located on the external sdcard for android M and above, allowing you to write the Poweramp ratings to the mp3 track itself. Forum users may be aware that Google introduced "security" to their android os by preventing writing to the external sdcard. They introduced something called Storage Access Framework (SAF) which is the folder picker which comes up when write access is required.
  13. No, it is simply a music player, but the best one around!
  14. 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.
  15. Poweramp is what it is. It always amazes me that users feel that they are entitled to any functionality they can think off.
  16. 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
  17. Can you post sample code of how you try to retrieve the albumart
  18. 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.
  19. 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?
  20. 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.
  21. 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
  22. 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.
  23. I am trying to update the Poweramp Playlist from an android playlist. I have the Poweramp database structure Poweramp content:// uris to select from managed to complete the first step which is to add the new android playlist name into the Poweramp playlist table. the actual file name of the track verified that the Poweramp unlock license is installed as it seems that this is what unlocks the dataprovider for Poweramp I need to obtain: the track_number by querying the folder_files tableupdate: 2/8/13. removed most of this post as it was irrelevant. Question is valid though and I think I now have my answer
  24. It is a matter of sorting. The titles are treated as text but there is a solution. Read this post:
  25. This issue was discussed in 2016. I found this link https://forums.oneplus.net/threads/paranoid-android-6-0-1-aospa-oneplus-x.450930/