Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on Android 5.01 / Samsung S4 #528

Closed
binwiederhier opened this issue Dec 4, 2022 · 3 comments
Closed

Crash on Android 5.01 / Samsung S4 #528

binwiederhier opened this issue Dec 4, 2022 · 3 comments
Labels
android-app ntfy Android app 🪲 bug Something isn't working

Comments

@binwiederhier
Copy link
Owner

binwiederhier commented Dec 4, 2022

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)

@binwiederhier binwiederhier added 🪲 bug Something isn't working android-app ntfy Android app labels Dec 4, 2022
@binwiederhier
Copy link
Owner Author

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.

@binwiederhier
Copy link
Owner Author

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.

@binwiederhier
Copy link
Owner Author

Fixed in binwiederhier/ntfy-android@e64cd79

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android-app ntfy Android app 🪲 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant