Hi I would like to show an Analog clock in my android app and set it to a specific time, say 18:50 and never change. I have created an AnalogClock view and added it to the activity but it only ever shows the current time and I can't find a function call change it to the time I want. Is it even possible?
I would have assumed that it would be something like below but these functions dont exist (or work that wat). AnalogClock clock = (AnalogClock)findViewById(R.id.clock); clock.setHour(18); clock.setMinute(50); or clock.setTime("18:50"); or even SimpleDateFormat df = new SimpleDateFormat("HH:mm"); Date myDateTime = df.format("18:50"); clock.setTime(myDateTime); Am I barking up the wrong tree by trying to use the AnalogClock view for something is not designed to do? If so is there a different way to achieve what I want? I guess I would need to extend the AnalogClock class to make it show a specific time of my choosing. Problem is I wouldnt know where to start. I feel like I have missed something stupidly obvious but I have been looking at it so long I cant see it :-) Any help would be appreciated Thanks Richard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---