android - Converting string to data -
i getting duration of audio file , convert int , convert int string , string 00:32 . converted string correct, problem convert string data here code: file file = new file(environment.getexternalstoragedirectory()+"/myimages/.audio1.wav"); mediaplayer mp = new mediaplayer(); fileinputstream fs = null; filedescriptor fd = null; try { fs = new fileinputstream(file); } catch (filenotfoundexception e) { // todo auto-generated catch block e.printstacktrace(); } try { fd = fs.getfd(); } catch (ioexception e) { // todo auto-generated catch block e.printstacktrace(); } try { mp.setdatasource(fd); } catch (illegalargumentexception e) { // todo auto-generated catch block e.printstacktrace(); ...