Menu

My recorder app deleted interrupted recordings that would have played
📰

My recorder app deleted interrupted recordings that would have played

DEV Community: kotlin·TheChemical·about 1 hour ago
#rnc6XcRp
#devtokotlin#devto#dev#file#recording
Reading 0:00
15s threshold

"I lost my 1 hour recording." That is a 2-star Google Play review of XSCamera , the Android background video recorder I work on, written on a OnePlus Nord CE5 with Android 16 and app version 4.0.9. Two more reviews in the same seven days said a recording was gone or would not open.

I have none of their files, so I read every code path in the app that can remove a video. One function deleted every .mp4 in the app's folder that had no database row, each time the recordings list opened. A recording whose process is killed never gets a row. The function assumed such a file cannot be played. On four phones with Android 13 to 16, all 22 recordings I killed on purpose played, the two longest minus their last 7 seconds and 1 minute 56 seconds.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.