[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. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=wrap_content

[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,