[Android Apps and Games] ltGuillaume:
A request that would really help me out. Deskclock usually opens up with the last tab active, which is fine. But this way there is no option to link directly to the Alarms tab/activity right from the homescreen or (in my case) from Smart Task Launcher. As such, could you perhaps consider to add the ability to create a SHORTCUT directly to the alarms tab (activity)? I THINK that takes 2 things, adding <intent-filter><action android:name="android.intent.action.CREATE_SHORTCUT" /></intent-filter> in the manifest and let the activity return the shortcut.

Currently I'm using a really tiny app I wrote especially for it (attached) that simply does this

Intent i = new Intent(AlarmClock.ACTION_SET_ALARM);
startActivity(i);

but with your DeskClock it somehow shows a black screen for a second (or even two) before going to the Alarms, while it doesn't do that with the default DeskClock. It would be best, of course, to not have to use an app to start an app :P

---------- Post added at 01:27 PM ---------- Previous post was at 01:19 PM ----------

The new version doesn't work on Android 2.x (2.3.7 CM7 in my case):

10-09 13:24:24.601 W/ActivityManager( 232): Activity destroy timeout for HistoryRecord{40b26578 com.android.mideskclock/.activities.MainActivity}
10-09 13:24:25.883 I/ActivityManager( 232): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.android.mideskclock cmp=com.android.mideskclock/.activities.MainActivity bnds=[0,175][96,306] } from pid 331
10-09 13:24:25.963 I/ActivityManager( 232): Start proc com.android.mideskclock for activity com.android.mideskclock/.activities.MainActivity: pid=1305 uid=10122 gids={}
10-09 13:24:26.093 D/szipinf ( 1305): Initializing inflate state
10-09 13:24:26.103 I/ActivityThread( 1305): Pub mideskclock: com.android.mideskclock.data.AlarmProvider
10-09 13:24:26.293 I/Database( 1305): sqlite returned: error code = 0, msg = Recovered 6 frames from WAL file /data/data/com.android.mideskclock/databases/alarms.db-wal
10-09 13:24:26.343 D/ViewConsistency( 1305): AbsListView android.widget.ListView@407b80a8 enabled= false
10-09 13:24:26.343 D/ViewConsistency( 1305): AbsListView android.widget.ListView@407b80a8 enabled= false
10-09 13:24:26.353 D/ViewConsistency( 1305): AbsListView android.widget.ListView@407c03b0 enabled= false
10-09 13:24:26.353 D/ViewConsistency( 1305): AbsListView android.widget.ListView@407c03b0 enabled= false
10-09 13:24:26.373 I/dalvikvm( 1305): Could not find method android.widget.LinearLayout.<init>, referenced from method com.android.mideskclock.views.i.<init>
10-09 13:24:26.373 W/dalvikvm( 1305): VFY: unable to resolve direct method 2143: Landroid/widget/LinearLayout;.<init> (Landroid/content/Context;Landroid/util/AttributeSet;I)V
10-09 13:24:26.373 D/dalvikvm( 1305): VFY: replacing opcode 0x70 at 0x0006
10-09 13:24:26.373 D/dalvikvm( 1305): VFY: dead code 0x0009-017f in Lcom/android/mideskclock/views/i;.<init> (Landroid/content/Context;Landroid/util/AttributeSet;I)V
10-09 13:24:26.373 D/AndroidRuntime( 1305): Shutting down VM
10-09 13:24:26.373 W/dalvikvm( 1305): threadid=1: thread exiting with uncaught exception (group=0x40281560)
10-09 13:24:26.383 E/AndroidRuntime( 1305): FATAL EXCEPTION: main
10-09 13:24:26.383 E/AndroidRuntime( 1305): android.view.InflateException: Binary XML file line #8: Error inflating class com.android.mideskclock.views.WatchDial
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.view.LayoutInflater.createView(LayoutInflater.java:518)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at com.android.mideskclock.a.q.a(Unknown Source)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.support.v4.app.Fragment.b(Unknown Source)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.support.v4.app.p.a(Unknown Source)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.support.v4.app.p.a(Unknown Source)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.support.v4.app.b.run(Unknown Source)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.support.v4.app.p.e(Unknown Source)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.support.v4.app.p.b(Unknown Source)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.support.v4.app.t.b(Unknown Source)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.support.v4.view.ViewPager.a(Unknown Source)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.support.v4.view.ViewPager.c(Unknown Source)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.support.v4.view.ViewPager.onMeasure(Unknown Source)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.view.View.measure(View.java:8341)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.widget.FrameLayout.onMeasure(FrameLayout.java:250)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.view.View.measure(View.java:8341)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.widget.FrameLayout.onMeasure(FrameLayout.java:250)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.view.View.measure(View.java:8341)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.widget.FrameLayout.onMeasure(FrameLayout.java:250)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.view.View.measure(View.java:8341)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.widget.FrameLayout.onMeasure(FrameLayout.java:250)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.view.View.measure(View.java:8341)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.view.ViewRoot.performTraversals(ViewRoot.java:843)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.view.ViewRoot.handleMessage(ViewRoot.java:1892)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.os.Handler.dispatchMessage(Handler.java:99)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.os.Looper.loop(Looper.java:130)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.app.ActivityThread.main(ActivityThread.java:3835)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at java.lang.reflect.Method.invokeNative(Native Method)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at java.lang.reflect.Method.invoke(Method.java:507)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at dalvik.system.NativeStart.main(Native Method)
10-09 13:24:26.383 E/AndroidRuntime( 1305): Caused by: java.lang.reflect.InvocationTargetException
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at java.lang.reflect.Constructor.constructNative(Native Method)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at android.view.LayoutInflater.createView(LayoutInflater.java:505)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	... 38 more
10-09 13:24:26.383 E/AndroidRuntime( 1305): Caused by: java.lang.NoSuchMethodError: android.widget.LinearLayout.<init>
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at com.android.mideskclock.views.i.<init>(Unknown Source)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at com.android.mideskclock.views.i.<init>(Unknown Source)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at com.android.mideskclock.views.i.<init>(Unknown Source)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at com.android.mideskclock.views.WatchDial.<init>(Unknown Source)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	at com.android.mideskclock.views.WatchDial.<init>(Unknown Source)
10-09 13:24:26.383 E/AndroidRuntime( 1305):	... 41 more
10-09 13:24:26.413 W/ActivityManager( 232): Force finishing activity com.android.mideskclock/.activities.MainActivity
10-09 13:24:26.483 D/dalvikvm( 1305): GC_CONCURRENT freed 247K, 49% free 2885K/5639K, external 0K/0K, paused 2ms+2ms
10-09 13:24:26.914 W/ActivityManager( 232): Activity pause timeout for HistoryRecord{40d47d50 com.android.mideskclock/.activities.MainActivity}