Skip to content

Shindd patch 1#1

Open
Shindd wants to merge 6 commits intomasterfrom
Shindd-patch-1
Open

Shindd patch 1#1
Shindd wants to merge 6 commits intomasterfrom
Shindd-patch-1

Conversation

@Shindd
Copy link
Collaborator

@Shindd Shindd commented Jun 29, 2018

Add classes for manage music list.

Shindd added 6 commits June 29, 2018 02:46
Usage: 
private MusicListManager music_list_manager;
public void set_music_list_manager(){
        String music_dir_path = Environment.getExternalStorageDirectory().getAbsolutePath() + "/MUSIC";
        File directory = new File(music_dir_path);
        File[] files = directory.listFiles();
        MusicList local_music_list = new MusicList();

        for(int i = 0; i < files.length; i++){
            String file_name = files[i].getName();
            Music temp = new Music(file_name, 0, "here");
            local_music_list.add_music(temp);
        }
        music_list_manager = new MusicListManager(local_music_list);
    }
Previous: Cannot read all files.
add the function that convert music list to json type
it contains: title, do_play
1. get_json_music_list() :
   Change return value form. It starts with "{songs : ~"

2. get_json_stringify_music():
   It contains title, artist, spot, do_play
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant