Dear All,

My intention is to add pause and resume functionality to my video
recording app, for which on selecting pause I am releasing the
recorder and on selecting resume I am starting a new recorder and
writing to a new file. After selecting stop I want to add all these
individual files and store as a single file in the database. Right now
I am following the below code. The second file contents are getting
added ( I suppose, as the first file size is updated ), but while
trying to play only first file contents are being played.

FileInputStream lFile = new FileInputStream(secondFile);
int lFileSize = lFile.available();
byte[] lBuffer = new byte[lFile.available()];
lFile.read(lBuffer);
lFile.close();

FileOutputStream lOut = new FileOutputStream(firstFile,true);
lOut.write(lBuffer);
lOut.flush();
lOut.close();

Thanks and Regards.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to