Android Question Text to Speech on EditText Crashes App

mmieher

Active Member
Licensed User
Longtime User
I have not done any special coding for TTS, but when users press the microphone on the Android keyboard, record some text, stop then attempt to edit the text, the App intermittently crashes with the following error:

android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:202)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2977)
at android.content.res.Resources.getLayout(Resources.java:1990)
at android.view.LayoutInflater.inflate(LayoutInflater.java:425)
at android.view.LayoutInflater.inflate(LayoutInflater.java:378)
at android.widget.Editor$SuggestionsPopupWindow.initContentView(Editor.java:3702)
at android.widget.Editor$PinnedPopupWindow.<init>(Editor.java:3393)
at android.widget.Editor$SuggestionsPopupWindow.<init>(Editor.java:3681)
at android.widget.Editor.replace(Editor.java:422)
at android.widget.Editor$3.run(Editor.java:2349)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6823)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1557)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1445)

Any ideas?
 

mmieher

Active Member
Licensed User
Longtime User
I just updated Manifest to what I use in a newer project and it appears to have eliminated the crash. Thanks for the hint!

AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)


AddManifestText(<uses-feature android:name="android.hardware.telephony" android:required="false"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
 
Upvote 0
Top