Google Invites Selected Devs to Buy Project Tango Development Kit

Just about a month ago, the curious Project Tango development kit was … more

Micromax Yureka: Indian Handset with CyanogenMod

Thesoap opera involving Cyanogen Inc., OnePlus, and Micromax is one of the most talked about … more

Chainfire Turns Your Bootanimation into a Logging Center

Having a nice boot animation certainly adds a little bit of aesthetic polish to your … more

Android TV Launcher Pushed to Google Play

Over the past decade, the tech universe has seen two drastic and widely contrasting changes with … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Desk clock application

OP shark0807

28th April 2010, 10: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, 12:12 PM   |  #2  
Member
Thanks Meter: 4
 
67 posts
Join Date:Joined: Mar 2007
+1. An application like this would be just awesome.
29th April 2010, 11: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, 08: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, 04: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 04:54 PM.
30th April 2010, 05: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, 06: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, 10: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, 10: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, 12:58 PM   |  #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