Dr. Domenico Giacomo Campanile

Sviluppatore App Web e Mobile

Fragment or activity reload

Activity Reload

myActivity.finish()
            startActivity(myActivity.intent)

Fragment Reload

 val ft: FragmentTransaction =
                myFragment.fragmentManager!!.beginTransaction()
            ft.detach(myFragment).attach(myFragment).commit()