Code example for TimePickerDialog

Methods: updateTime

0
            case 1: 
                h = getScheduleStopHour();
                m = getScheduleStopMinute();
                break; 
        } 
        tpd.updateTime(h, m);
        mShownDialog = id;
    } 
 
    @Override 
    public void onStart() { 
        super.onStart(); 
        sStarted = true;
    } 
 
    @Override 
    protected void onStop() { 
        super.onStop(); 
        sStarted = false;
        GmailReceiver.exitAsNeeded(); 
    }