This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Android and the fly likes Digital Clock Implemetation for an Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Digital Clock Implemetation for an Application" Watch "Digital Clock Implemetation for an Application" New topic
Author

Digital Clock Implemetation for an Application

zoheb hassan
Ranch Hand

Joined: Apr 01, 2009
Posts: 150

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



[Thumbnail for device.png]

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

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?


JBoss In Action
zoheb hassan
Ranch Hand

Joined: Apr 01, 2009
Posts: 150

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
Marshal

Joined: Mar 22, 2005
Posts: 41133
    
  45
The easiest would probably be to check out the source code of the android.widget.DigitalClock class. Start here: http://source.android.com/


Ping & DNS - my free Android networking tools app
zoheb hassan
Ranch Hand

Joined: Apr 01, 2009
Posts: 150

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
Marshal

Joined: Mar 22, 2005
Posts: 41133
    
  45
Well, what happened when *you* tried it?
zoheb hassan
Ranch Hand

Joined: Apr 01, 2009
Posts: 150

Ahh well let me try it
zoheb hassan
Ranch Hand

Joined: Apr 01, 2009
Posts: 150

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
Marshal

Joined: Mar 22, 2005
Posts: 41133
    
  45
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

Joined: Apr 01, 2009
Posts: 150

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Digital Clock Implemetation for an Application
 
Similar Threads
Please help me this. Im new to this.
Digital Clock
how to draw on label ??
Method for displaying time
analog&digital instruments