Hi Everyone,
I am trying t orecord audio and play audio file. I am successfully able to record audio file in SDCard. but when i am trying to playing it i am getting exception means not able to open file descriptor.below is my source code. I am able to play recorded file outside from my app by native android player.
FileInputStream fis = openFileInput(filePath); <<<<<-----------This line code crashes but i check the path file is available there
MPX = new MediaPlayer();
MPX.reset();
MPX.setDataSource(fis.getFD());
MPX.prepare();
MPX.start();
thanks
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment