private var fileUrl: String = "" private var taskIds: String = ""
override fun onActivityCreated(savedInstanceState: Bundle?) { super.onActivityCreated(savedInstanceState) fileUrl = activity!!.intent.getStringExtra("fileUrl") taskIds = activity!!.intent.getStringExtra("taskIds") } If this is used then if If getStringExtra() returns null, it will report java.lang.IllegalStateException: Fragment already added
Similar Posts:
- [Solved] Can not perform this action after onSaveInstanceState
- Fragment not attached to Activity [How to Solve]
- Android Exception: UncaughtException detected: java.lang.RuntimeException: Parcelable encountered IOExcepti
- [Solved] java.lang.IllegalStateException: Fragment already added: xxxxFragment
- [Solved] The activity must be exported or contain an intent-filter
- java.lang.IllegalArgumentException: Service Intent must be explicit: Intent { act=com.ba.cal
- [Solved] Android Studio Warning: Default Activity not found
- Android studio reports an error using startservice: IllegalStateException
- [Solved] Android.os.networkonmainthreadexception exception of Android
- Fragment Loading Error: java.lang.IllegalArgumentException: No view found for id …