Like I just said, you cannot do this. On Fri, Jun 19, 2009 at 5:21 AM, sunita <agrawal.suni...@gmail.com> wrote:
> > So you want to say that there is no way to override the AnalogClock > Widget at the home screen ,to display our custom clock,am I right? > following is the the xml im using for my custom widget > > 1.<?xml version="1.0" encoding="utf-8"?> > 2. > 3.<com.android.alarmclock_cs.AnalogClock_cs xmlns:android="http:// > schemas.android.com/apk/res/android" > 4. xmlns:widget="http://schemas.android.com/apk/res/ > com.android.alarmclock_cs" > 5. > 6. android:layout_width="wrap_content" > 7. android:layout_height="fill_parent" > 8. > 9. widget:dials="@drawable/port_idle_bigclock_bg_am" > 10. > widget:hand_hours="@drawable/port_idle_bigclock_time" > 11. > widget:hand_minutes="@drawable/port_idle_bigclock_min"/> > 12. > > I'm getting the following warning at line no. 3. > > WARN/AppWidgetHostView(612): android.view.InflateException: Binary XML > file line #3: Error inflating class > com.android.alarmclock_cs.AnalogClock_cs > . > . > . > WARN/AppWidgetHostView(612): Caused by: > java.lang.ClassNotFoundException: > com.android.alarmclock_cs.AnalogClock_cs in loader > dalvik.system.pathclassloa...@400190f8 > > Is there any way or workaround so that we can add our custom analog > clock at the home screen widget? > > -Thanks > > > On Jun 18, 10:32 pm, Romain Guy <romain...@google.com> wrote: > > You cannot use your own views in Home widgets, for security reasons. > > > > > > > > > > > > On Wed, Jun 17, 2009 at 10:48 PM, sunita<agrawal.suni...@gmail.com> > wrote: > > > > > I want to make my own Analog class by extending View.............but > > > it is giving > > > > > WARN/AppWidgetHostView(614): Caused by: > > > java.lang.ClassNotFoundException: > > > com.back.alarmclock_cs.AnalogClock_new in loader > > > dalvik.system.pathclassloa...@400190f8 > > > > > 06-18 10:12:25.848: WARN/AppWidgetHostView(614): > > > android.view.InflateException: Binary XML file line #17: Error > > > inflating class com.back.alarmclock_cs.AnalogClock_new > > > > -- > > Romain Guy > > Android framework engineer > > romain...@android.com > > > > Note: please don't send private questions to me, as I don't have time > > to provide private support. All such questions should be posted on > > public forums, where I and others can see and answer them- Hide quoted > text - > > > > - Show quoted text - > > > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---