android java.lang.illegalstateexception,Android java.lang.IllegalStateException: Fragment already ad...

I'm getting a loading object waiting for a request from the webservice. But sometimes this object causes my application to end. I couldn't detect exactly what the error involved.

In order to prevent this error, I called the object "dismiss" and "cancel" while passing the activity, but this did not work. I then assigned a value of "null" which didn't work either. I didn't work again because I thought I was dealing with Tag.

My error code;

2019-03-27 11:51:20.502 29685-29685/com.xxxx.app E/AndroidRuntime: FATAL EXCEPTION: main

Process: com.xxxx.app, PID: 29685

java.lang.IllegalStateException: Fragment already added: DelayedProgressDialog{d8bd442 #1 Delaleyed}

at androidx.fragment.app.FragmentManagerImpl.addFragment(FragmentManager.java:1916)

at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:765)

at androidx.fragment.app.

你可能感兴趣的:(android)