Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,580 Members 40,435 Now Online
XDA Developers Android and Mobile Development Forum

Desk clock application

Tip us?
 
shark0807
Old
#1  
shark0807's Avatar
Senior Member - OP
Thanks Meter 8
Posts: 110
Join Date: Dec 2009
Location: Columbus
Default Desk clock application

In my job I have the opportunity to work with a large variety of phones that multiple carriers in the United States sell. One interesting feature I saw was on the Blackberry Curve 8500 series, in which when you plug your phone into a USB device, it automatically goes to an analog clock screen.

I know that in 2.1 ROMs for the Hero, we have a nice program called Desk clock, which shows a digital clock moving to random parts of the screen.

My question is, is there a way to configure Desk Clock so that it automatically turns on when I plug my phone into my computer?
 
kyods
Old
#2  
Member
Thanks Meter 4
Posts: 67
Join Date: Mar 2007
+1. An application like this would be just awesome.
 
MrMooh
Old
#3  
Junior Member
Thanks Meter 0
Posts: 9
Join Date: Apr 2010
Default There you go

I built a little something for you.
For now, it is really just a prototype.
If installing works and you open it, it will show nothing. This is not a bug, there is just nothing to show. The service listening for power plugins is running in the background, so just hit home and ignore it.
It will try to launch the android 2.1 clock first and then the HTC one when you connect the power supply.

I'll try to give it some kind of UI later, but for now, I've got a train to catch. Have fun with it.
Attached Files
File Type: apk DeskClockPowerMonitor.apk - [Click for QR Code] (15.0 KB, 718 views)
 
kyods
Old
#4  
Member
Thanks Meter 4
Posts: 67
Join Date: Mar 2007
Thanks a lot, MrMooh! I'll test it once I get back from work and post the results.
 
kyods
Old
(Last edited by kyods; 30th April 2010 at 03:54 PM.)
#5  
Member
Thanks Meter 4
Posts: 67
Join Date: Mar 2007
It works like a charm. It seems it calls the HTC Clock application, not this dedicated 'Desk Clock' app from 2.1, but it's even better for me. Awesome work, thank you so very much, MrMooh.

EDIT:
Is there a way to make this service run at startup in background?
 
MrMooh
Old
#6  
Junior Member
Thanks Meter 0
Posts: 9
Join Date: Apr 2010
I'll look into it. I already have an improved version, but it's not what I'd be proud to release. Perhaps at the end of this weekend I will have it finished.
 
kyods
Old
#7  
Member
Thanks Meter 4
Posts: 67
Join Date: Mar 2007
Default Re: Desk clock application

Thanks. I'll be more than happy to do the beta-testing.

Sent from my Hero using the XDA mobile application powered by Tapatalk
 
keridel
Old
#8  
keridel's Avatar
Senior Member
Thanks Meter 1
Posts: 171
Join Date: Jan 2009
Location: portsmouth
Default Re: Desk clock application

I would be interested in this too. Seems like a fine idea. I can beta test if need be.

Sent from my Hero using the power of thought!
Running Galaxy Nexus on stock 4.0
Desire HD on leedroid

(Rooted my Hero with the help of btdag's epic guide to rooting the HTC Hero)

Campaigning for a better facebook app for Android here

 
MrMooh
Old
#9  
Junior Member
Thanks Meter 0
Posts: 9
Join Date: Apr 2010
Alright guys, I quickly made a new version this morning.
It should actually start automatically after booting up and you have a button to manually start and stop the service.
Try it out and tell me the bugs
Attached Files
File Type: apk DeskClockPowerMonitor.apk - [Click for QR Code] (16.7 KB, 621 views)
 
kyods
Old
#10  
Member
Thanks Meter 4
Posts: 67
Join Date: Mar 2007
Works perfectly. If there are any bugs - I can't find them. Thanks, once again.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Hide Numbers on Your SMS and Call Logs with Reflection

How many times have you given your device to someone else in order to show them a … more

Implement Split View in Your LG G2 KitKat Rom with Automated Installer

Some of you may have remembered a story on the Portal a few weeks back … more

Cast Your Device Screen the Way it Was Meant to be with Second Screen

Not too long ago here on the XDA Portal, we covered how Google had made … more

Samsung Gear Live Unboxed the XDA Way – XDA Developer TV

XDA Developer TV Producer AdamOutleris known for his XDA Unboxingseries where … more