[android-beginners] Re: java.lang.IllgealArgumentException:OnCreateDialog did not create a dialog for id ..

2010-01-21 Thread Chester
Hi, sorry, I figured out the problem: I forgot to copy this piece of the code. @Override protected Dialog onCreateDialog(int id) { switch (id) { case DATE_DIALOG_ID: return new DatePickerDialog(this, mDateSetListener,

[android-beginners] Re: java.lang.IllgealArgumentException:OnCreateDialog did not create a dialog for id ..

2010-01-21 Thread Chester
I have the exact the problem. I simply cut and post the tutorial from the Android Developer site. Here is my main.xml and java code. http://schemas.android.com/apk/res/ android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical">