You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: App crashes when adding voice recording due to missing speech recognition activity #102
Bug Description
The app crashes when trying to add a voice recording to a note. This happens due to an unhandled ActivityNotFoundException when attempting to launch the speech recognition activity.
To Reproduce
Steps to reproduce the behavior:
Tap on "Create New Note" button.
Add a voice recording for the new note.
The app crashes immediately.
Expected Behavior
The app should either:
Successfully launch a voice recording interface, or
Gracefully handle the absence of a speech recognition activity (e.g., show an error message or disable the feature if unsupported).
Device: generic_x86_64 (Android Studio x86 emulator)
OS: Android 9.0 (Default Android System Image)
Version: 1.3.7
Suggested Fix
Check if there's an app available to handle the android.speech.action.RECOGNIZE_SPEECH intent before launching it. If not, inform the user or disable the feature to avoid a crash.
Error Log
FATAL EXCEPTION: main
Process: com.mshdabiola.playnotepad.foss, PID: 3127
java.lang.RuntimeException: Failure delivering result ResultInfo{...} to activity {...MainActivity}:
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.speech.action.RECOGNIZE_SPEECH (has extras) }
...
Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.speech.action.RECOGNIZE_SPEECH (has extras) }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2007)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1673)
...
Activity
mshdabiola commentedon Jun 9, 2025
Thanks, i will fix it