java - Searching entire storage of phone and SD Card for Music Player -
back when started make music player , searching in sd card work , show music , player work properly. couple weeks ago, bought new phone , decided install app onto it, when loaded app, couldn't find music, need way change current code search every folder of phone, , micro sd card , file ends in ".mp3". main activity.java class mp3filter implements filenamefilter { public boolean accept(file dir, string name) { return (name.endswith(".mp3")); } } public class mainactivity extends listactivity implements oncompletionlistener { private static final string sd_path = new string(environment.getexternalstoragedirectory().getpath() + "/"); private static final string phone_storage = new string(environment.getrootdirectory().getpath() + "/"); private list<string> songs = new arraylist<string>(); private mediaplayer mp = new mediaplayer(); private view play; private view pause; private view stop; private view next; private