Mahesh,
You might want to try setDataForId(dialId, value) method instead as if you are making a clock it will have more than one dial. Give your dial an id and use that as dialId argument when you call setDataForId. I do not think that it is necessary to set value to 0 for the first time. You can achieve the same by setting your xml value attribute if you wanted.