[GH-ISSUE #528] Crash on Android 5.01 / Samsung S4 #403

Closed
opened 2026-05-05 04:03:21 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @binwiederhier on GitHub (Dec 4, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/528

Received this via email (Translated from German):

On the Samsung S4, which supposedly still meets the requirements with Android 5.01, trying to delete any received message produces a program crash: "App stopped". I took the opportunity to send a message. Reinstalling the app didn't help either. Since I am not familiar with Gitub, I am writing to you directly and attaching four hard copies. The information may help to fix the error with one of the next updates.

ntfy(1)

Originally created by @binwiederhier on GitHub (Dec 4, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/528 Received this via email (Translated from German): > On the Samsung S4, which supposedly still meets the requirements with Android 5.01, trying to delete any received message produces a program crash: "App stopped". I took the opportunity to send a message. Reinstalling the app didn't help either. Since I am not familiar with Gitub, I am writing to you directly and attaching four hard copies. The information may help to fix the error with one of the next updates. ![ntfy(1)](https://user-images.githubusercontent.com/664597/205492913-af5b5363-dfbb-4bbd-9425-90ad99af4f57.png)
gitea-mirror 2026-05-05 04:03:21 -06:00
Author
Owner

@binwiederhier commented on GitHub (Dec 4, 2022):

I checked in the Google Play Console, and I didn't see any stack traces for Android 5. Without a stack trace, I cannot help, sadly. Was ntfy installed via Google Play, or F-Droid, or manual .apk file? Install the Google Play version if you can.

If that doesn't work, you can attach adb to your phone (Google how that works) and use adb logcat to get stack traces.

Hope this helps.

<!-- gh-comment-id:1336410485 --> @binwiederhier commented on GitHub (Dec 4, 2022): I checked in the Google Play Console, and I didn't see any stack traces for Android 5. Without a stack trace, I cannot help, sadly. Was ntfy installed via Google Play, or F-Droid, or manual .apk file? Install the Google Play version if you can. If that doesn't work, you can attach `adb` to your phone (Google how that works) and use `adb logcat` to get stack traces. Hope this helps.
Author
Owner

@binwiederhier commented on GitHub (Dec 6, 2022):

I managed to capture the stack trace using an emulated device.

D/AndroidRuntime( 3044): Shutting down VM
E/AndroidRuntime( 3044): FATAL EXCEPTION: main
E/AndroidRuntime( 3044): Process: io.heckel.ntfy, PID: 3044
E/AndroidRuntime( 3044): java.lang.NoSuchMethodError: No virtual method setTextAppearance(I)V in class Landroid/widget/Button; or its super classes (declaration of 'android.widget.Button' appears in /system/framework/framework.jar)
E/AndroidRuntime( 3044): 	at io.heckel.ntfy.ui.DetailActivity.onDeleteClick$lambda-14(DetailActivity.kt:620)
E/AndroidRuntime( 3044): 	at io.heckel.ntfy.ui.DetailActivity.$r8$lambda$ut9Li7uDthDKlUSw0CZNoSZmPVY(DetailActivity.kt)
E/AndroidRuntime( 3044): 	at io.heckel.ntfy.ui.DetailActivity$$ExternalSyntheticLambda16.onShow(D8$$SyntheticClass)
E/AndroidRuntime( 3044): 	at android.app.Dialog$ListenersHandler.handleMessage(Dialog.java:1263)
E/AndroidRuntime( 3044): 	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 3044): 	at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 3044): 	at android.app.ActivityThread.main(ActivityThread.java:5221)
E/AndroidRuntime( 3044): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 3044): 	at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 3044): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
E/AndroidRuntime( 3044): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
W/ActivityManager( 1538):   Force finishing activity io.heckel.ntfy/.ui.DetailActivity

I was calling a function that doesn't exist on SDK 21. Not sure why the IDE lets me do that. I'll fix it.

<!-- gh-comment-id:1339993034 --> @binwiederhier commented on GitHub (Dec 6, 2022): I managed to capture the stack trace using an emulated device. ``` D/AndroidRuntime( 3044): Shutting down VM E/AndroidRuntime( 3044): FATAL EXCEPTION: main E/AndroidRuntime( 3044): Process: io.heckel.ntfy, PID: 3044 E/AndroidRuntime( 3044): java.lang.NoSuchMethodError: No virtual method setTextAppearance(I)V in class Landroid/widget/Button; or its super classes (declaration of 'android.widget.Button' appears in /system/framework/framework.jar) E/AndroidRuntime( 3044): at io.heckel.ntfy.ui.DetailActivity.onDeleteClick$lambda-14(DetailActivity.kt:620) E/AndroidRuntime( 3044): at io.heckel.ntfy.ui.DetailActivity.$r8$lambda$ut9Li7uDthDKlUSw0CZNoSZmPVY(DetailActivity.kt) E/AndroidRuntime( 3044): at io.heckel.ntfy.ui.DetailActivity$$ExternalSyntheticLambda16.onShow(D8$$SyntheticClass) E/AndroidRuntime( 3044): at android.app.Dialog$ListenersHandler.handleMessage(Dialog.java:1263) E/AndroidRuntime( 3044): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime( 3044): at android.os.Looper.loop(Looper.java:135) E/AndroidRuntime( 3044): at android.app.ActivityThread.main(ActivityThread.java:5221) E/AndroidRuntime( 3044): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime( 3044): at java.lang.reflect.Method.invoke(Method.java:372) E/AndroidRuntime( 3044): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) E/AndroidRuntime( 3044): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) W/ActivityManager( 1538): Force finishing activity io.heckel.ntfy/.ui.DetailActivity ``` I was calling a function that doesn't exist on SDK 21. Not sure why the IDE lets me do that. I'll fix it.
Author
Owner

@binwiederhier commented on GitHub (Dec 6, 2022):

Fixed in e64cd79c28

<!-- gh-comment-id:1340020089 --> @binwiederhier commented on GitHub (Dec 6, 2022): Fixed in https://github.com/binwiederhier/ntfy-android/commit/e64cd79c28122596c9989563af12c59916eb27e5
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/ntfy#403
No description provided.