Android Java DatePickerDialog. How do I set the initial date value?
Posted on 2012-04-02
This is hopefully a simple one. I've been looking for ages but just can't find a solution.
I'm using showDialog to pop up the DatePickerDialog. All aspects of this are fine.
I can't find out how to set the initial value the DatePickerDialog shows.
I know you can set the value once in the onCreateDialog but I need to set it every time I show the dialog not just when its created.
I'm guessing there is some kind of object I can access I just can't find it anywhere.