In android for each time picker Dialog we can associate with a dialog. So with this dialog and a global variable we can have any number of Dialog listeners. Here is the sample java code. This is the layout file – main.xml MyAndroidAppActivity .java Please leave your valuable comments on this post.
Hi, For converting string to a date in JAVA use the following code. 🙂
Here is a simple code to get the current time in android in your own format. The output will look like this.