App to show clock while charging?

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

  1. gflam

    gflam Developer
    Theme Developer Developer

    Joined:
    Jun 14, 2010
    Messages:
    1,900
    Likes Received:
    29
    Trophy Points:
    113
    Location:
    Jersey
    Ratings:
    +34
    Run these in terminal or adb shell and let me know if this works to open the clock

    Code:
     am start -a android.intent.action.MAIN -n com.android.deskclock/com.android.deskclock.AlarmProvider
    and if that doesn't work try this

    Code:
     am start -a android.intent.action.MAIN -n com.google.android.deskclock/com.android.deskclock.DeskClock
    Those are the intents i was getting out of your original log cat and that's how you would do it in bash
     
  2. TheCleaner

    TheCleaner Member

    Joined:
    Dec 3, 2009
    Messages:
    169
    Likes Received:
    4
    Trophy Points:
    18
    Ratings:
    +4
    hate to say it but plug in launcher works OK...not wonderful as has some issues with lock screen but ok.

    However I'm still hopeful for this one as it is simpler and no ads or frills.

    Sent from my Galaxy Nexus using DroidForums
     
  3. gflam

    gflam Developer
    Theme Developer Developer

    Joined:
    Jun 14, 2010
    Messages:
    1,900
    Likes Received:
    29
    Trophy Points:
    113
    Location:
    Jersey
    Ratings:
    +34
    Would just be easier if i had the device and desk clock installed on my phone :) lol if not i'll install ics to my phone and get it to work for you myself just let me know what those bash commands output
     
  4. captdroid

    captdroid Senior Member

    Joined:
    Jun 30, 2010
    Messages:
    1,797
    Likes Received:
    17
    Trophy Points:
    68
    Ratings:
    +17
    shell@android:/ $

    shell@android:/ $ am start -a android.intent.action.MAIN -n com.android.deskclock/com.android.deskclock.AlarmProvider
    ion.MAIN -n com.android.deskclock/com.android.deskclock.AlarmProvider <
    Starting: Intent { act=android.intent.action.MAIN cmp=com.android.deskclock/.AlarmProvider }
    Error type 3
    Error: Activity class {com.android.deskclock/com.android.deskclock.AlarmProvider} does not exist.
    shell@android:/ $


    This one below works though! Brings up the deskclock once I execute via adb

    shell@android:/ $ am start -a android.intent.action.MAIN -n com.google.android.deskclock/com.android.deskclock.DeskClock

    ion.MAIN -n com.google.android.deskclock/com.android.deskclock.DeskClock <
    Starting: Intent { act=android.intent.action.MAIN cmp=com.google.android.deskclock/com.android.deskclock.DeskClock }
    shell@android:/ $
     
  5. gflam

    gflam Developer
    Theme Developer Developer

    Joined:
    Jun 14, 2010
    Messages:
    1,900
    Likes Received:
    29
    Trophy Points:
    113
    Location:
    Jersey
    Ratings:
    +34
    hmm alright well then that would equate to this in java

    Code:
    Intent i = new Intent(Intent.ACTION_MAIN);
    i.setComponent(new ComponentName("com.google.android.deskclock", "com.android.deskclock.DeskClock"));
    context.startActivity(intent);
    Which is what's in the receiver in this one although that's what i thought i did in the last version but anyway same deal just rename to apk
     
  6. captdroid

    captdroid Senior Member

    Joined:
    Jun 30, 2010
    Messages:
    1,797
    Likes Received:
    17
    Trophy Points:
    68
    Ratings:
    +17
    Installed, opened, plugged in the phone. Same thing "unfortunatly, ChargeClock has stopped."
     
  7. TheCleaner

    TheCleaner Member

    Joined:
    Dec 3, 2009
    Messages:
    169
    Likes Received:
    4
    Trophy Points:
    18
    Ratings:
    +4
    actually alarm clock plus is flawless...just found it.

    So...up to you if u want to pursue further...I would still use your app.

    Sent from my Galaxy Nexus using DroidForums
     
  8. captdroid

    captdroid Senior Member

    Joined:
    Jun 30, 2010
    Messages:
    1,797
    Likes Received:
    17
    Trophy Points:
    68
    Ratings:
    +17
    Nice find! I can set the alarm clock plus to execute upon plugging in power and the default home button on that screen to be the Car Home Ultra (found in alarm clock plus settings to configure these options). So plugging in to charge in the house the big clock comes up, if I want regular launcher at that point I just hit back. If I am in the car and want Car Home Ultra after plugging in power then I just hit the home icon on the big clock screen :)
     
  9. TheCleaner

    TheCleaner Member

    Joined:
    Dec 3, 2009
    Messages:
    169
    Likes Received:
    4
    Trophy Points:
    18
    Ratings:
    +4
    Yep. It even works like the old droid dock would where it shows the clock for a bit with the buttons and weather and then goes to "screensaver" mode with a dimmer clock.

    I feel bad for gflam, I'm sure he'd have figured it out and it could very well be a great app still, especially for its simplicity, but Alarm Clock Plus is perfect for my needs despite all the other stuff it was intended to do.
     
  10. captdroid

    captdroid Senior Member

    Joined:
    Jun 30, 2010
    Messages:
    1,797
    Likes Received:
    17
    Trophy Points:
    68
    Ratings:
    +17
    Bah don't feel bad for gflam he will live :D
     
  11. gflam

    gflam Developer
    Theme Developer Developer

    Joined:
    Jun 14, 2010
    Messages:
    1,900
    Likes Received:
    29
    Trophy Points:
    113
    Location:
    Jersey
    Ratings:
    +34
    Sorry went out for a while but alright no problem wasn't much don't feel bad was just a few lines of code if I were on ics probably would have got it quick but if that works then no need to keep going was just trying to help ha :)

    Sent from my evo 3d at 1.8ghz
     
  12. captdroid

    captdroid Senior Member

    Joined:
    Jun 30, 2010
    Messages:
    1,797
    Likes Received:
    17
    Trophy Points:
    68
    Ratings:
    +17
    Ah there gflam is... Thanks for the effort and hope to see ya with a new Gnex :) I wouldn't mind seeing the multi ROM boot prog I bought from ya updated for the Gnex :icon_ devil:
     
Search tags for this page
android app display clock while charging
,
android charging clock
,
android clock app while charging
,

android clock when charging

,

android display clock while charging

,
android show clock when charging
,
android start app when charging
,
charging clock android
,
disable desk clock android
,
how to standby in clock while charging in android