I am using java Library (jid3lib-0.5.4.jar)from http://javamusictag.sourceforge.net/ to get lyrics of a mp3 file something like this :-
File f= new File(Fragmentactivity.songpaths.get(3)); //file path is correct
Toast.makeText(getContext(), ""+dstg.getName(), Toast.LENGTH_LONG).show() ;
try {
MP3File d=null;
if(f.isFile()==true&&f.exists()==true&&f.canWrite()==true)
d=new MP3File(dstg.getAbsoluteFile(),false);//here error coming string out of bound exception
Lyrics3v2 tag = new Lyrics3v2(d.getLyrics3Tag());
Toast.makeText(getContext(), ""+tag.getSongLyric(), Toast.LENGTH_LONG).show() ;
} catch (IOException e1) {
Toast.makeText(getContext(), "tag prob upper", Toast.LENGTH_LONG).show() ;
}
catch (TagException e1) {
Toast.makeText(getContext(), "tag prob", Toast.LENGTH_LONG).show() ;
}
but it is showing initalisation error . Can anyone tell me why so ?.
Thanks in advance :).