Jump to content

flyingdutchman

Approved Members
  • Posts

    2,510
  • Joined

  • Last visited

 Content Type 

Profiles

Forums

Blogs

Gallery

Downloads

Poweramp Knowledge Base

База знаний Poweramp

Poweramp知识库

Poweramp Equalizer Knowledge Base

База знаний Poweramp Equalizer

Store

Events

Ideas

Posts posted by flyingdutchman

  1. @ihaspei 15 minutes of fine tuning

     

    yaps.png

    hide waveseek, ratings/like, menu button (in Poweramp ui menu)

    reduce albumart size

    set circles for play buttons, buttons to 0 

    set backgrounds of buttons and play buttons to transparent.

    navbar background transparent

    resize play buttons and space them as you like it

    hide the category icon

    You can now even change the colours of the play buttons, navbar icons, button icons, change colours of seekbar and lapsed seekbar

    and so on.

    The options are endless.

    I hope this helps

  2. @ihaspei great stuff. Yes, the other skins offer "default" options with little opportunity to customise.

    I think you can achieve what you want eg set background to black or preferred colour, for play buttons set background to transparent. To remove circles, reduce thickness to 0. There are options to choose which circles. In addition you could investigate the different play buttons on offer.

    select your preferred seekbar and set your own colours for lapsed and remaing parts. Size the seekbar thumb, pick colour for seekbar thumb.

    hide track meta information, hide elapsed and duration. Set  disabled icons colour to some opaque colour. 

    Do let me know how you get on. 

    Ps i will have a go at creating the look when i get the chance

    You can email me your skin settings so I can approximate your preferences better. SSettings>Export Settings>3rd party skin settings

  3. 6 hours ago, slizzap said:

    Hey guys,

    I know this has been brought up before, but I don't recall if it was stated whether this could be fixed or not. Is it possible that a setting can be added to fix/adjust this? Any album that has a white cover, the white text for the track/artist/album info gets completely lost. Sorry if I'm beating a dead horse here. Obviously I'm reminded every time a song plays from an album with a white or extremly bright cover.

    20230901_180445.jpg.e7c2eda6f71d6872d1741a8c864dbb3a.jpg

    The only way for the text to show is to set a colour.

  4. I have decided to unpublish the BIG YAPS as I am totally fed up with having to jump through all sort of ridiculus google hoops to get the new version published.

    Anybody who is interested can email me (please do not post your email here) and I will provide a link so you can download the .apk.

    Email in the signature

  5. @Pumila works fine for me
    2023-08-13 11:09:39.091 25397-25397 PlayCount               com...ngdutchman.newplaylistmanager  D  再生回数: 0
    2023-08-13 11:09:39.091 25397-25397 PlayCount               com...ngdutchman.newplaylistmanager  D  再生回数: 1
    2023-08-13 11:09:39.091 25397-25397 PlayCount               com...ngdutchman.newplaylistmanager  D  再生回数: 0
    2023-08-13 11:09:39.091 25397-25397 PlayCount               com...ngdutchman.newplaylistmanager  D  再生回数: 1
    2023-08-13 11:09:39.091 25397-25397 PlayCount               com...ngdutchman.newplaylistmanager  D  再生回数: 0
    2023-08-13 11:09:39.091 25397-25397 PlayCount               com...ngdutchman.newplaylistmanager  D  再生回数: 0
    2023-08-13 11:09:39.091 25397-25397 PlayCount               com...ngdutchman.newplaylistmanager  D  再生回数: 0
    2023-08-13 11:09:39.091 25397-25397 PlayCount               com...ngdutchman.newplaylistmanager  D  再生回数: 0
    2023-08-13 11:09:39.091 25397-25397 PlayCount               com...ngdutchman.newplaylistmanager  D  再生回数: 0
    2023-08-13 11:09:39.091 25397-25397 PlayCount               com...ngdutchman.newplaylistmanager  D  再生回数: 0
    2023-08-13 11:09:39.091 25397-25397 PlayCount               com...ngdutchman.newplaylistmanager  D  再生回数: 0
    2023-08-13 11:09:39.091 25397-25397 PlayCount               com...ngdutchman.newplaylistmanager  D  再生回数: 0
    2023-08-13 11:09:39.091 25397-25397 PlayCount               com...ngdutchman.newplaylistmanager  D  再生回数: 0
    2023-08-13 11:09:39.091 25397-25397 PlayCount               com...ngdutchman.newplaylistmanager  D  再生回数: 0
    2023-08-13 11:09:39.091 25397-25397 PlayCount               com...ngdutchman.newplaylistmanager  D  再生回数: 0

    I would run your methods from the MainActivity

    add to the top

    private final PlayCount playcount = new PlayCount();

    (it should ask you to import the class)

    playcount.queryPowerampData(mContext);

    If you want to execute operations on the returned data you could do this within the do.. while loop

     

  6. Latest BIG YAPS release is out. It is based on the latest YAPS release V230.

    It has most of the functionality you will find in YAPS but it has a customised front UI portrait and landscape layout.

    The ideal skin for use in car in either orientation. 

    As with YAPS you can move most elements on the UI to where you like them.

    Try it out !!  it is free

    Love to hear your comments!!

  7. @Pumila you are on the right track

    in my example I have predefined the columns used for the projection. You do not show these so I cannot tell if your query actually works.

    For play count I have done the following

    defined my variable "folder_files_played_times" and assigned the folder_files.played_times

    public String folder_files_played_times = "folder_files.played_times as count_of_played";

    When you run this query and it returns values, there will be a column called count_of_played

    Iterating over the cursor you find out which column it actually is

    integer column_number_count = cursor.getInt(cursor.getColumnIndex("count_of_played"));

    then you can get the string value or int value

    int cnt = cursor.getInt(column_number_count);

    for only 1 column you could use the hard coded approach

    int cnt = cursor.getInt(0);

    Some additional points

    Cursor.Movefirst to go to the beginning

    Cursor.getCount() to check if you actually have something. Any operations with a cursor which is null will give you a crash

    Set breakpoints and run in debug mode. It will allow you to investigate values

  8. 1 hour ago, Pumila said:

    MediaSessionCompat

    this appears to be related to playing tracks. You are more interested in using the Poweramp API.

    I assume you are using Android Studio.

    Create your new project

    Get the Poweramp API from Github and add it to your project structure

    image.png.26b88f9b9c98684baee5338774681fd8.png

    now have a good look at the section with uri;'s as these are the things that give you access to the databse

    /**
     * Data:<br>
     * - uri, following URIs are recognized:<br>
     *     - file://path (NOTE: depending on Android version, uris like this can fail due to missing filesystem permissions)<br>
     *     - content://com.maxmpz.audioplayer.data/... (see below)<br><br>
     *  - any other content:// uri compatible with ContentResolver.openFile<br>
     *  - http/https url (stream or remote track file)<br><br>
     *......etc
    for example
    
    public final Uri powerampuri = Uri.parse("content://com.maxmpz.audioplayer.data/files");
    // powerampfoldersuri =SELECT folder_files._id FROM folder_files
    //INNER JOIN folders ON folders._id=folder_id
    //INNER JOIN albums
    //ON albums._id=folder_files.album_id
    //INNER JOIN artists ON artists._id=folder_files.artist_id
    Cursor test = cr.query(powerampuri, null, null, null, null);

    below will return the content of the composer table

    pcursor = pamp.get_table_content(context, pamp.composersuri, proj, null, null, null);
    
    public Cursor get_table_content(Context context, Uri table_uri, String[] proj, String where, String[] sel_args, String order_by) {
       Cursor cursor = null;
       if (context != null) {
          ContentResolver cr = context.getContentResolver();
          try {
             cursor = cr.query(table_uri, proj, where, sel_args, order_by);
          } catch (Exception e) {
             e.printStackTrace();
          }
       }
       return cursor;
    }

     

     

  9. @Pumila you create playlists by selecting the relevant "times Played" The + button at the top will ask you for a playlist name.

    The table is accessed by using the api (https://github.com/maxmpz/powerampapi/tree/master/poweramp_api_lib) which is what Music Playlist Manager does.

    You cannot access it directly.

     

    If you are into java programming

    public Cursor getPowerampTrackcursor(Context context, String where, String sort_order) {
    
     
          String[] proj = {pamptrack_id,
                pamptrack_name,
                pampalbum,
                pampartist,
                pamprating,
                pampduration,
                pamppath,
                pamptimes_played};
          try {
             Cursor cursor = context.getContentResolver().query(powerampuri, proj, where,
                   null, sort_order);
             return cursor;
          } catch (Exception e) {
             e.printStackTrace();
          }
      
     
    }
    

    this is what it actually  does 

    SELECT folder_files._id, folder_files.name AS name, folder_files.artist_id AS artist_id,duration, rating, artists.artist, albums.album, folders.path FROM folder_files INNER JOIN folders ON folders._id=folder_id  LEFT JOIN albums ON albums._id=folder_files.album_id LEFT JOIN artists ON artists._id=folder_files.artist_id  WHERE (folder_files.cue_folder_id IS NULL)  ORDER BY folder_files.title_tag COLLATE NOCASE 

    Uri powerampuri =  PowerAMPiAPI.ROOT_URI.buildUpon().appendEncodedPath("files").build();

     String[] proj ={ pamptrack_id, pamptrack_name, pampartist,pampduration,pampalbum, pampyear, pamppath, pamptrack_no,pamprating };

  10. @andrewilley MPM has a "Smart Playlist" option. First build your query eg Ratings > 2 AND < 5 AND Times Played <> 0, save it and create a new playlist by running it.

    Next, reload the query and link it to the new playlistyou just created, save it.

    There are 2 options for updating the playlist a) set it to run each time you load the app or click the menu option to update the smart playlists. If you have more than one smart playlist, it will work through all of them.

     

×
×
  • Create New...