storage-chooser
storage-chooser copied to clipboard
java.lang.RuntimeException: Unable to start activity
crashes if open dialog and lost activity
FATAL EXCEPTION: main
java.lang.RuntimeException:
Unable to start activity ComponentInfo{***}:
java.lang.NullPointerException:
Attempt to invoke virtual method 'void android.app.Dialog.setContentView(android.view.View)' on a null object reference
and missed trigger to force close dialog...
Can you explain the lost activity part. Are you clearing from recents or when getting an error on the activity it crashes?
on low memory device open dialog then click task or minimize app and after go back to app activity has destroyed, and you get this error.
Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{***}: java.lang.NullPointerException: Attempt to invoke virtual method 'int[] com.codekidlabs.storagechooser.models.Config.getScheme()' on a null object reference
I am using version 2.0.4.2, and getting this type error on random devices in my crashlytics, but not able to reproduce, so please help to rectify these errors