Post Reply

Desk clock application

28th April 2010, 09:03 PM   |  #1  
shark0807's Avatar
OP Senior Member
Flag Columbus
Thanks Meter: 8
 
110 posts
Join Date:Joined: Dec 2009
More
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?
29th April 2010, 11:12 AM   |  #2  
Member
Thanks Meter: 4
 
67 posts
Join Date:Joined: Mar 2007
+1. An application like this would be just awesome.
29th April 2010, 10:08 PM   |  #3  
Junior Member
Thanks Meter: 0
 
9 posts
Join Date:Joined: Apr 2010
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)
30th April 2010, 07:23 AM   |  #4  
Member
Thanks Meter: 4
 
67 posts
Join Date:Joined: Mar 2007
Thumbs up
Thanks a lot, MrMooh! I'll test it once I get back from work and post the results.
30th April 2010, 03:19 PM   |  #5  
Member
Thanks Meter: 4
 
67 posts
Join Date:Joined: 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?
Last edited by kyods; 30th April 2010 at 03:54 PM.
30th April 2010, 04:05 PM   |  #6  
Junior Member
Thanks Meter: 0
 
9 posts
Join Date:Joined: 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.
30th April 2010, 05:05 PM   |  #7  
Member
Thanks Meter: 4
 
67 posts
Join Date:Joined: Mar 2007
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
30th April 2010, 09:49 PM   |  #8  
keridel's Avatar
Senior Member
Flag portsmouth
Thanks Meter: 1
 
171 posts
Join Date:Joined: Jan 2009
More
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!
1st May 2010, 09:31 AM   |  #9  
Junior Member
Thanks Meter: 0
 
9 posts
Join Date:Joined: 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)
2nd May 2010, 11:58 AM   |  #10  
Member
Thanks Meter: 4
 
67 posts
Join Date:Joined: Mar 2007
Works perfectly. If there are any bugs - I can't find them. Thanks, once again.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes