Dim jo As JavaObject
jo.InitializeNewInstance("android.media.MediaMetadataRetriever", Null)
Dim m As Map
m.Initialize
jo.RunMethod("setDataSource", _
Array As Object(File.DirRootExternal, mFileName, _
m))
Log(jo.RunMethod("extractMetadata", Array As Object(9))) 'duration constant
mFileName is the name given to the audio file recorded that is: 1.wav
What am I doing wrong?
Thanks for any help
Massimiliano
Hey! Thanks Erel, with your code I don't get error and I get a result... but for a file that is 5 seconds long I get 3942 value... how should I read it?
Nevermind... I got it... they are millisec...
Thanks for your help Erel you're great!