Re: [android-developers] DialogFragment created twice after orientation change

2014-01-29 Thread Daniel Rindt
Am Donnerstag, 30. Januar 2014 00:01:56 UTC+1 schrieb TreKing: > > You are creating a new Dialog in your onCreate method. onCreate gets > called both the first time the app is run (with savedInstanceState set to > null) and after an orientation (configuration) change, with > savedInstanceState s

Re: [android-developers] DialogFragment created twice after orientation change

2014-01-29 Thread TreKing
You are creating a new Dialog in your onCreate method. onCreate gets called both the first time the app is run (with savedInstanceState set to null) and after an orientation (configuration) change, with savedInstanceState set to the last saved state Bundle. In the latter case, the system also auto

[android-developers] DialogFragment created twice after orientation change

2014-01-28 Thread Daniel Rindt
Dear readers, i experienced a double call to onCreateDialog also to onCreateView in my project. here is my activity code: public class DialogTestActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);