I have the following activity but when called it crashes in my emulator any advice application has stopped unexpectedly...Im using netbeans any advice i can post the xml file if needed
package org.me.androidapplication; import android.app.Activity; import android.os.Bundle; import android.widget.Button; import android.widget.DatePicker; import android.widget.TextView; import android.widget.TimePicker; /** * * @author kurt_cuffe */ public class AppointmentTime extends Activity { private DatePicker dateAppointment; private TextView lblTitle; private TimePicker timeStart; private TimePicker timeEnd; private TextView lblStart; private TextView lblEnd; private Button btnNext; private Button btnCancel; private int ACTIVITY_CREATE; /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); // ToDo add your GUI initialization code here setContentView(R.layout.studentime); initControls(); } private void initControls() { dateAppointment = (DatePicker) findViewById(R.id.dateAppointment); lblTitle = (TextView) findViewById(R.id.lblTitle); timeStart = (TimePicker) findViewById(R.id.timeStart); timeEnd = (TimePicker) findViewById(R.id.timeEnd); lblStart = (TextView) findViewById(R.id.lblStart); lblEnd = (TextView) findViewById(R.id.lblEnd); btnNext = (Button) findViewById(R.id.btnNext); btnCancel = (Button) findViewById(R.id.btnCancel); } } kurtgambino Once Poster Posts: 1 Joined: Sat Aug 14, 2010 7:39 pm Top -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en