FORUMS

XDA Recap: This Week In Android (May 17 – 23)

Another week, another recap. The Sunday tradition marches on this week with a fresh … more

Huawei To Sell Honor Smartphones Via Indian Retail Outlets

World’s fourth largest smartphone maker Huawei plans to now sell its … more

Sunday Debate: Are Smaller Bezels Better or Worth It?

Bezels have been getting smaller and smaller as the years go by, and while devices … more

LG G4 First Impressions and Unboxing – XDA TV

The latest in LG’s signature line of “G phones” has been released. … more
Post Reply Subscribe to Thread Email Thread

Desk clock application

28th April 2010, 09:03 PM |#1  
shark0807's Avatar
OP Senior Member
Flag Columbus
Thanks Meter: 8
 
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
 
More
+1. An application like this would be just awesome.
29th April 2010, 10:08 PM |#3  
Junior Member
Thanks Meter: 0
 
More
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
 
More
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
 
More
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
 
More
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
 
More
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
 
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
 
More
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
 
More
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