• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Digital Clock Implemetation for an Application

 
zoheb hassan
Ranch Hand
Posts: 154
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Guys i want to implement an Digital Clock for an android app, How should i go about it?? The expected screen should resemble like
the attachment
device.png
[Thumbnail for device.png]
Digital Clock
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a general question about how to write an Android app? If so, what Android development have you do so far? What code have you written for the digital clock so far?

The screen shot show the digital clock being displayed on the locked-screen page, much like music being played shows up there. So is your question really about how to get your app to display on the lock screen?
 
zoheb hassan
Ranch Hand
Posts: 154
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Peter thanks for taking interest in my Question, Well the answers to your Questions

1)s this a general question about how to write an Android app??
A)No its not i am not an beginner at android development, I have worked around couple of Apps

2)What code have you written for the digital clock so far?
A)Well this is the code


and thirdly i do not want to display the lock page screen in my app, I just want to customize the DigitalClock so that it resembles the one in the lock page Screen

Hope that clears a lot of things and sorry for not phrasing the question Properly and thanks Peter for helping me do So
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The easiest would probably be to check out the source code of the android.widget.DigitalClock class. Start here: http://source.android.com/
 
zoheb hassan
Ranch Hand
Posts: 154
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Dittmer i looked at some forums and there people tried using the digital clock reported that they had trouble building that part of code and got a message saying looking for internal packages
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, what happened when *you* tried it?
 
zoheb hassan
Ranch Hand
Posts: 154
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahh well let me try it
 
zoheb hassan
Ranch Hand
Posts: 154
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ditmer any pointers on how to go trough the source code, Ive found nothing for Lock Screen Display this is the first i am looking at the android source Code
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would you look for "Lock Screen Display" when you're interested in the android.widget.DigitalClock class? Search for "source code android.widget.DigitalClock".

My name is Ulf, by the way. If you're more comfortable addressing me by my last name, then the polite way to do so is by prefixing it by "Mr."
 
zoheb hassan
Ranch Hand
Posts: 154
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mr. Ditmer thank you for correcting me on the right way to address People when you intend to call them by their Last Name, I however did not mean any disrespect.

I Know that the place to look for digital Clock is android.widget.DigitalClock, But i do not know How to CUSTOMIZE it to make it look like the one in the Lock Page Screen any help on this is appreciated.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic