Fixing leaks in Collect app

How to fix leaks in the customized app? when the app is installed through the apk files app crashes when I click the "GET Blank Form" and the error is

Activity org.gic.spade.android.activities.FormDownloadListActivity has leaked window DecorView@47efb4f[Connecting to Server] that was originally added here
at android.view.ViewRootImpl.(ViewRootImpl.java:615)

That error is pretty common on Android and generally means an Activity is trying to show a dialog after it's been destroyed. Are you able to reproduce this error consistently? If so what steps are you taking?

If this is a customized app there might not be that much anyone can help with without linking to the code as it might be an error introduced as part of the customization.

1 Like

actual problem was that fabric.io was not initialized.So the above error had arrived i solved this problem by initializing fabric in my application class

Fabric.with(this, new Crashlytics());