• 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

Everything posted by TheoKlink

  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. 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
  11. It is a matter of sorting. The titles are treated as text but there is a solution. Read this post:
  12. This issue was discussed in 2016. I found this link https://forums.oneplus.net/threads/paranoid-android-6-0-1-aospa-oneplus-x.450930/
  13. 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.
  14. Is there an option to look at the bug report?
  15. Not sure what FC means, I assume it crashes, but did you uninstall and reinstall Poweramp ?
  16. 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
  17. Short answers, no and no, sorry
  18. You state in your first post that you want to import a playlist created using the stock android music player, but then you say that other apps cannot see those playlists either. This makes me think that your samsung playlists are not created in the android media database but, like Poweramp, samsung maintains its own database. If this is the case, there may be a way to export from your samsung music player so powramp can access them. Did you try as i suggested and use my app to check if your samsung playlist actually exists in the android media database and whether it has the tracks you expect?
  19. simply copy your podcasts to a different folder and ensure Poweramp does NOT scan this folder.
  20. I assume you created the playlists on the same device so this should work. Try and create a .m3u playlist. Pa should be able to recognize this. No need to import either, simply put it in a folder which is scanned by pa.. I suggest you use my app (see link in signature) to a) check if your android playlist exists and is correct. B create an .m3u playlist and make it available in Poweramp. ( http://www.theo.klinkweb.nl/Poweramp.html for details on how).
  21. If you have more tracks by an artist, it is more likely a song by this artist is selected.
  22. If you disable Google Play, you will still get the license issue even with an older Poweramp version.
  23. It is sorted as text so this is correct.
  24. Git (/ɡɪt/) is a version control system for tracking changes in computer files and coordinating work on those files among multiple people. It is primarily used for source code management in software development, but it can be used to keep track of changes in any set of files. or in other words, Max is actively working hard !!! and here is the proof
  25. Not sure what exactly trying to achieve.Are you trying to create a copy?