Flash cards with audio and Android app. Audio file paths causing phone app to crash.

17 views
Skip to first unread message

duncansi...@gmail.com

unread,
Jan 16, 2017, 6:43:38 PM1/16/17
to mnemosyne-proj-users
This is an ongoing issue I have been trying to resolve. I haven't been able to fix it but I can try to explain whats happening. I have noticed that 2.3 and 2.4 transfer files differently to the phone so I will try to explain both.

In my database I have audio files for pronunciation. I've had it for a very long time and is now quite large so it would be difficult to change the setup just to get working on my phone.

My database has audio files where some paths for example might be,

<audio src="BOYA Chinese/NiHao.wav">

In 2.3 this will be transferred to my phone as simply "NiHao.wav" in Default_db folder on my phone. It does not transfer the complete path. The result is the mnemosyne app crashes when it tries to play the audio file.

If on the PC the file audio file path is simply <audio src="NiHao.wav"> then after transfer the mnemosyne app will play the audio correctly.


I originally set up my audio in folders so I wouldn't have conflicts where different textbook/lessons have the same word used in other textbooks/lessons. Now this has rendered my whole database useless for use on my phone. I can create a new database just for the phone that doesn't contain audio in folders but I just haven't got around to it yet.

The process in 2.4 is slightly different but still results in the phone app crashing.

If my audio has the path <audio src="BOYA Chinese/NiHao.wav"> the file transferred to my phone will be placed in the default_db folder and renamed to "BOYA Chinese/NiHao.wav" and crashes the app when it tries to play that audio.

Again if the audio path on the PC is simply <audio src="NiHao.wav"> and not contained inside a folder within the defaul_db folder then the mnemosyne app will play the flash card with audio corectly and not crash.

Phone is an Meizu m2 note with Flyme OS, based on Android 5.0 Lollipop.

Peter Bienstman

unread,
Jan 17, 2017, 1:54:01 PM1/17/17
to mnemosyne-proj-users, duncansi...@gmail.com
Hi,

Can you try with this version, after deleting /sdcard/mnemosyne ? https://www.dropbox.com/s/o01yko3kpldosm5/Mnemosyne-test.apk?dl=0

If you've done a full sync from phone to PC in the past, you might have ended up with two copies of files, i.e. A/B and A\B, which will get propagated back to your phone after a full sync. However, you should be able to delete the unused copy without problems.

Cheers,

Peter
Reply all
Reply to author
Forward
0 new messages