App to show clock while charging?

Discussion in 'Samsung Galaxy Nexus' started by TheCleaner, Jan 2, 2012.

  1. TheCleaner
    Offline

    TheCleaner New Member

    Joined:
    Dec 3, 2009
    Messages:
    169
    Likes Received:
    4
    Trophy Points:
    0
    UPDATE: I found that "Alarm Clock Plus" in the market works great for this...just install, go into the settings, and choose itself to run after plugging in.

    I can launch the "desk clock" app manually, but is there a way to just show the desk clock or similar automatically when the usb cable is plugged in?

    I saw a few apps like "bedside" and "tasker", but both are paid apps and the ICS reviews seem to state that neither work right.

    Any help is appreciated.
    Last edited: Jan 2, 2012
  2. gflam
    Offline

    gflam Developer Theme Developer Developer

    Joined:
    Jun 14, 2010
    Messages:
    1,878
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Jersey
    If not I could write it for you in ten seconds ha wouldn't mind either let me get home and check if there's a charging receiver and I'll write it for you free

    Just at dinner now so give me an hour or two

    Sent from my evo 3d at 1.8ghz
  3. TheCleaner
    Offline

    TheCleaner New Member

    Joined:
    Dec 3, 2009
    Messages:
    169
    Likes Received:
    4
    Trophy Points:
    0
    You rock man. I'm sure there are others that would love the app. It's odd that there isn't a setting in the clock apk for it. It works great if you manually launch it and you can change the brightness with a simple swipe but it won't auto launch.
  4. gflam
    Offline

    gflam Developer Theme Developer Developer

    Joined:
    Jun 14, 2010
    Messages:
    1,878
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Jersey
    Actually I know there's a charging receiver set cpu uses it so give me an hour or two and I'll write you one in ten seconds

    Sent from my evo 3d at 1.8ghz
  5. gflam
    Offline

    gflam Developer Theme Developer Developer

    Joined:
    Jun 14, 2010
    Messages:
    1,878
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Jersey
    Yea no problem that's really simple to do so won't mind doing that at all

    Sent from my evo 3d at 1.8ghz
  6. TheCleaner
    Offline

    TheCleaner New Member

    Joined:
    Dec 3, 2009
    Messages:
    169
    Likes Received:
    4
    Trophy Points:
    0
    OK thank you. I was hoping for something like "dockrunner" but apparently nothing exists yet. I would figure that they'd have to have something in ICS to support the future docks for the Nexus but can't find any 3rd party apps.

    Thanks again.
  7. gflam
    Offline

    gflam Developer Theme Developer Developer

    Joined:
    Jun 14, 2010
    Messages:
    1,878
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Jersey
    No problem have it for you tonight

    Sent from my evo 3d at 1.8ghz
  8. gflam
    Offline

    gflam Developer Theme Developer Developer

    Joined:
    Jun 14, 2010
    Messages:
    1,878
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Jersey
    What should we call it?

    Sent from my evo 3d at 1.8ghz
  9. TheCleaner
    Offline

    TheCleaner New Member

    Joined:
    Dec 3, 2009
    Messages:
    169
    Likes Received:
    4
    Trophy Points:
    0
    LOL, it's your app. I'd even pay 99 cents for it if it worked well and was in the Market.

    Here's what I was hoping for (sequence of events):

    1. Plug in charger
    2. After a few seconds instead of standby phone goes to "Desk Clock"
    3. Can still get to desktop (like the normal use of Desk Clock functions)
    4. Unplugging from charger goes to home screen
    5. Can force phone to "standby" by pressing power button

    Basically an app that works identical to the OG Droid multimedia dock or "dockrunner" app.

    I'm guessing the only access it would need is to know when a phone call or text is incoming, but you'd know better than I would. Shouldn't need data access I would presume.

    Something logical = ChargeClock or maybe "Nexus Dock"
    Last edited: Jan 2, 2012
  10. gflam
    Offline

    gflam Developer Theme Developer Developer

    Joined:
    Jun 14, 2010
    Messages:
    1,878
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Jersey
    Nah it'll be free and was just gonna do this write an app with a receiver to listen for charging then when the listener is tripped send an intent to launch the desk clock app

    If there's a receiver for unplugging the charger which um sure there is I can have it launch the home screen

    App wouldn't even have an icon in the drawer

    That good? Just left dinner on my way home

    Sent from my evo 3d at 1.8ghz
  11. TheCleaner
    Offline

    TheCleaner New Member

    Joined:
    Dec 3, 2009
    Messages:
    169
    Likes Received:
    4
    Trophy Points:
    0
    Works for me. But it would be nice to at least have an enable/disable option...but i wont be picky for free...lol.
  12. gflam
    Offline

    gflam Developer Theme Developer Developer

    Joined:
    Jun 14, 2010
    Messages:
    1,878
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Jersey
    Enable disable is easy enough if you want just not gonna be doing a whole ui and all just got home so i'll have it for you soon. But doing an enable disable option means i'll need to have an icon in the app drawer which is no problem.
  13. captdroid
    Offline

    captdroid New Member

    Joined:
    Jun 30, 2010
    Messages:
    1,797
    Likes Received:
    17
    Trophy Points:
    0
    'Plug in Launcher' in the market seems to work. You can assign an app to either USB or Power and other options. Also has disable button.

    I assigned the clock app to the power option in Plug in Launcher and it worked fine launching the 'deskclock' after plugging in the power.
    Last edited: Jan 2, 2012
  14. gflam
    Offline

    gflam Developer Theme Developer Developer

    Joined:
    Jun 14, 2010
    Messages:
    1,878
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Jersey
    Whats the package on your deskclock? com.android.deskclock? just a guess :) i have an htc device and my d1 isn't with me so i can't check it really
  15. captdroid
    Offline

    captdroid New Member

    Joined:
    Jun 30, 2010
    Messages:
    1,797
    Likes Received:
    17
    Trophy Points:
    0
    com.google.android.deskclock on stock 4.02 ICS
  16. gflam
    Offline

    gflam Developer Theme Developer Developer

    Joined:
    Jun 14, 2010
    Messages:
    1,878
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Jersey
    Alright well using that package name my intent looks like this

    Code:
    Intent i = new Intent(Intent.ACTION_MAIN);
    i.setComponent(new ComponentName("com.google.android.desklock", ".DeskClock"));
    i.addCategory(Intent.CATEGORY_LAUNCHER);
    context.startActivity(i);
    Assuming DeskClock is the correct activity

    All that i have left is to write in to enable and disable it and then i'll post the apk i don't have ics on my phone right now so it force closes for me since that package doesn't exist in sense :) ha but guess you'll let me know
  17. captdroid
    Offline

    captdroid New Member

    Joined:
    Jun 30, 2010
    Messages:
    1,797
    Likes Received:
    17
    Trophy Points:
    0
    Cool I'll test it out for you. If it works could you make one for me to launch package name 'spinninghead.carhome' and the enable / disable? Just asking don't mean to hijack the thread. But your simplified app may work better then my other solution posted.
  18. TeeX
    Offline

    TeeX New Member

    Joined:
    Feb 7, 2011
    Messages:
    244
    Likes Received:
    4
    Trophy Points:
    0
    oooh second this! I'd love an automated launcher for car home! that app is the bomb!

    I'd like to donate some cashey money for your efforts. PayPal maybe??



    Sent from my Galaxy Nexus using DroidForums
  19. gflam
    Offline

    gflam Developer Theme Developer Developer

    Joined:
    Jun 14, 2010
    Messages:
    1,878
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Jersey
    Yea sure just gonna need the activity name i'll show you how to get that in a second but here try this out let me know if that launches your deskclock i guessed on the activity if it doesn't work that's what the issue will be :)

    View attachment 45256

    Just unzip the above file and use the apk inside

    Let me know how it works would be easier if i had a gnex :) lol
  20. captdroid
    Offline

    captdroid New Member

    Joined:
    Jun 30, 2010
    Messages:
    1,797
    Likes Received:
    17
    Trophy Points:
    0
    No work. :) Here is what a logcat shows when I launch the deskclock though:

    I/ActivityManager(30121): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.google.android.deskclock/com.android.deskclock.DeskClock bnds=[40,255][200,455]} from pid 30880
    I/ActivityManager(30121): Start proc com.google.android.deskclock for activity com.google.android.deskclock/com.android.deskclock.DeskClock: pid=32493 uid=10013 gids={}
    I/ActivityThread(32493): Pub com.android.deskclock: com.android.deskclock.AlarmProvider
Search tags for this page
android app display clock while charging
,
android app showing clock when charger is plugged
,
android app to show clock when plugged in
,

android charging clock

,

android clock when charging

,
android deskclock charging screen
,

android display clock while charging

,
android show clock when charging
,

android start app when charging

,
charging clock android
,
com google deskclock apk
,
display time while charging phone
,
galaxy s4 show clock while charging
,
how to standby in clock while charging in android
,
s3 time to show when charging