android Programming Glossary: retaining
Proper way to give initial data to fragments http://stackoverflow.com/questions/10798489/proper-way-to-give-initial-data-to-fragments return getArguments .getString KEY_FILE If you are retaining your fragment instance you should be able to get away with just..
Fragment onCreateView and onActivityCreated called twice http://stackoverflow.com/questions/10983396/fragment-oncreateview-and-onactivitycreated-called-twice a null savedInstanceState This is causing problems with retaining the state of the fragment on rotation. android android fragments..
DialogFragment - retaining listener after screen rotation http://stackoverflow.com/questions/14042495/dialogfragment-retaining-listener-after-screen-rotation retaining listener after screen rotation I have a DialogFragment which..
How to close Android application? http://stackoverflow.com/questions/2092951/how-to-close-android-application the system to close the app down completely instead of retaining it in the background. The virtual machine that runs the app..
How to save state during orientation change in Android if the state is made of my classes? http://stackoverflow.com/questions/3915952/how-to-save-state-during-orientation-change-in-android-if-the-state-is-made-of-m activity destruction creation. And as Dianne pointed out retaining nonconfiguration data was for optimizing things like thumbnail..
Best practice: AsyncTask during orientation change http://stackoverflow.com/questions/7128670/best-practice-asynctask-during-orientation-change using retained Fragment s. It solves the problem of retaining an AsyncTask across a rotation change nicely. You basically..
support FragmentPagerAdapter holds reference to old fragments http://stackoverflow.com/questions/9727173/support-fragmentpageradapter-holds-reference-to-old-fragments problem down to being a problem with the fragmentManager retaining instances of old fragments and my viewpager being out of sync..
Proper way to give initial data to fragments http://stackoverflow.com/questions/10798489/proper-way-to-give-initial-data-to-fragments file f.setArguments args return f @Override String getPage return getArguments .getString KEY_FILE If you are retaining your fragment instance you should be able to get away with just using ordinary setters to put stuff in data members. The..
Fragment onCreateView and onActivityCreated called twice http://stackoverflow.com/questions/10983396/fragment-oncreateview-and-onactivitycreated-called-twice with a Bundle with the saved state and the second time with a null savedInstanceState This is causing problems with retaining the state of the fragment on rotation. android android fragments android 4.0 share improve this question I was scratching..
DialogFragment - retaining listener after screen rotation http://stackoverflow.com/questions/14042495/dialogfragment-retaining-listener-after-screen-rotation retaining listener after screen rotation I have a DialogFragment which creates a DatePickerDialog. I'm using a static method called..
How to close Android application? http://stackoverflow.com/questions/2092951/how-to-close-android-application threads have closed. System.runFinalizersOnExit true Force the system to close the app down completely instead of retaining it in the background. The virtual machine that runs the app will be killed. The app will be completely created as a new..
How to save state during orientation change in Android if the state is made of my classes? http://stackoverflow.com/questions/3915952/how-to-save-state-during-orientation-change-in-android-if-the-state-is-made-of-m way to handle keeping expensive to recreate data alive across activity destruction creation. And as Dianne pointed out retaining nonconfiguration data was for optimizing things like thumbnail generation that are nice to save for performance reasons..
Best practice: AsyncTask during orientation change http://stackoverflow.com/questions/7128670/best-practice-asynctask-during-orientation-change can read my article describing how to handle configuration changes using retained Fragment s. It solves the problem of retaining an AsyncTask across a rotation change nicely. You basically need to host your AsyncTask inside a Fragment call setRetainInstance..
support FragmentPagerAdapter holds reference to old fragments http://stackoverflow.com/questions/9727173/support-fragmentpageradapter-holds-reference-to-old-fragments reference to old fragments LATEST INFO i have narrowed my problem down to being a problem with the fragmentManager retaining instances of old fragments and my viewpager being out of sync with my FragmentManager. See this issue... http code.google.com..
|