i using java library (jid3lib-0.5.4.jar)from http://javamusictag.sourceforge.net/ lyrics of mp3 file :-
file f= new file(fragmentactivity.songpaths.get(3)); //file path 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 showing initalisation error . can tell me why ?.
thanks in advance :).
as far know if running application on micromax device version 4.2.1, can face java.lang.stringindexoutofboundsexception
seems manufacturer bug in specific version micromax device. same problem happened me once when had play video in splash screen , got same error in particular version of micromax device. below links same issue.
java.lang.stringindexoutofboundsexception while playing video in videoview : android v 4.2.1
https://groups.google.com/forum/#!topic/android-developers/-wp6uxdebm8
so try debugging app other micromax version 4.2.1, hope work.
Comments
Post a Comment