android - Lifecycle methods executed on Fragment object creation -


what fragment life cycle methods executed when fragment object only created inside activity before being displayed using fragment transaction?

while create object of fragment creating object of normal class. there noting special in creating object fragment.

once attached fragment manager , when begin transition. attached activity , onattach(activity) called once fragment associated activity.

after remaining life cycle methods called.

ondetach() called prior fragment no longer being associated activity.

for more info @ link. https://developer.android.com/reference/android/app/fragment.html


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -