I'm making an application based on alarm manager, I have to set multiple time pickers in the custom dialog box, / P>
I have created a custom dialog box and dynamically displayed several buttons using spinner. Protected Dialog Create Dialogue (Int ID) {Switch ID} on
{Case TIME_DIALOG_ID: New Time PictureDialog (This, Timer, Hour, Minute, Wrong) Back Return; } Return tap; }} error is on syntax error on the error (int id) token ")";
P> You have more than one Must be declared stable if you want to repeat the dialog. This way
private constant final integer TIME_DIALOG_ID = 0; Private Stable Last End TIME_DIALOG_ID1 = 1; @ Override Public Dialog onCreateDialog (int id) {switch (id) {case TIME_DIALOG_ID: New TimePickerDialog return (this, mTimeSetListener, 0, 0, wrong); Case TIME_DIALOG_ID1: Return new Time PictureDialog (this, mTimeSetListener, 0, 0, False); } Return tap; } & amp; Then click on the button LISTENER jst it on a different button such as
showDialog (TIME_DIALOG_ID); ShowDialog (TIME_DIALOG_ID1);
Comments
Post a Comment