public String getSongInfo(File file) {

            String songInfo = null;
            MediaPlayer mp = null;
            try {
                mp = createMediaPlayer(file.getAbsolutePath());
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
            if (mp != null) {
                Map<String, Object> metadata = mp.getMedia().getMetadata();
                if (!metadata.isEmpty()) {
                    songInfo = "";
                    songInfo = metadata.get("title").toString();
                    songInfo += metadata.get("artist").toString();
                }
            }
            if (songInfo == null) {
                return file.getName();
            } else {
                return songInfo;
            }
        }