elimu-ai / crowdsource

✍🏽 Android application which enables the crowd to upload and peer review educational content and ML datasets
https://play.google.com/store/apps/details?id=ai.elimu.crowdsource
MIT License
1 stars 1 forks source link

Prevent FileNotFoundException when downloading audio recording to be peer reviewed #29

Open nya-elimu opened 3 years ago

nya-elimu commented 3 years ago
2021-05-21 10:25:46.997 29826-29826/ai.elimu.crowdsource.debug I/PeerReviewAudioActivity: initializeAudioRecordingPeerReview
2021-05-21 10:25:46.998 29826-29826/ai.elimu.crowdsource.debug I/SharedPreferencesHelper: getLanguage
2021-05-21 10:25:46.998 29826-29826/ai.elimu.crowdsource.debug I/PeerReviewAudioActivity: audioBytesUrl: http://hin.test.elimu.ai/audio/1_r1.mp3
2021-05-21 10:25:47.001 29826-29826/ai.elimu.crowdsource.debug W/MediaPlayer: Couldn't open http://hin.test.elimu.ai/audio/1_r1.mp3: java.io.FileNotFoundException: No content provider: http://hin.test.elimu.ai/audio/1_r1.mp3
2021-05-21 10:25:47.001 29826-29826/ai.elimu.crowdsource.debug I/MediaPlayer: setDataSource(http://hin.test.elimu.ai/audio/1_r1.mp3)
2021-05-21 10:25:47.093 29826-29826/ai.elimu.crowdsource.debug I/MediaPlayer: [HSM] stayAwake true uid: 1010026, pid: 29826
2021-05-21 10:25:47.093 29826-29826/ai.elimu.crowdsource.debug I/MediaPlayer: Pid:29826 MediaPlayer::start
2021-05-21 10:25:48.242 29826-29826/ai.elimu.crowdsource.debug I/MediaPlayer: [HSM] stayAwake false uid: 1010026, pid: 29826

For context, see Slack thread: https://elimu-ai.slack.com/archives/C0LDBLX3J/p1621582804003400?thread_ts=1621447726.007900&cid=C0LDBLX3J