Back to Top

Widget not working...

6 posts / 0 new
Last post
commandercup
Offline
Last seen: 10 years 7 months ago
Joined: 10/18/2009 - 12:03
Widget not working...

I'm running a CDMA hero and I can't get the widget to work. Upon updating DC I ad the widget to an empty page and it only took up a single grid space even though when I dragged to place it, 4 spaces were outlined. The single grid widget had a play button and a skip button only as if the widget had been squished. when I restarted the widget sshowed up as Problem Loading Gadget and then when I deleted it and tried to re-add it, it didn't show up In my widgets menu anymore. I uninstalled and reinstalled, and the same problems occurred.

Whats going on?

AshtonBRSC
Offline
Last seen: 7 years 3 months ago
Joined: 11/30/2008 - 11:41
When I add the widget to the

When I add the widget to the SenseUI on my HTC Hero, I also get a one space widget as shown in this picture:

http://tinypic.com/r/2ailjk3/4

but no errors in logcat.

When I try using the default Android home on the same HTC Hero, I get the following logcat

174 Launcher D dumping extras content=Bundle[{appWidgetId=14}]
174 ResourceType W getEntry failing because entryIndex 1 is beyond type entryCount 1
174 ResourceType W Failure getting entry for 0x7f080001 (t=7 e=1) in package 0: 0x80000001
174 ResourceType W getEntry failing because entryIndex 2 is beyond type entryCount 1
174 ResourceType W Failure getting entry for 0x7f080002 (t=7 e=2) in package 0: 0x80000001
174 AppWidgetHostView W updateAppWidget couldn't find any view, using error view
174 AppWidgetHostView W java.lang.RuntimeException: Binary XML file line #3: You must supply a layout_width attribute.
174 AppWidgetHostView W at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:438)
174 AppWidgetHostView W at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:3373)
174 AppWidgetHostView W at android.view.ViewGroup$MarginLayoutParams.(ViewGroup.java:3453)
174 AppWidgetHostView W at android.widget.FrameLayout$LayoutParams.(FrameLayout.java:453)
174 AppWidgetHostView W at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:419)
174 AppWidgetHostView W at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:48)
174 AppWidgetHostView W at android.view.LayoutInflater.inflate(LayoutInflater.java:395)
174 AppWidgetHostView W at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
174 AppWidgetHostView W at android.widget.RemoteViews.apply(RemoteViews.java:830)
174 AppWidgetHostView W at android.appwidget.AppWidgetHostView.updateAppWidget(AppWidgetHostView.java:167)
174 AppWidgetHostView W at android.appwidget.AppWidgetHost.createView(AppWidgetHost.java:218)
174 AppWidgetHostView W at com.android.launcher.Launcher.completeAddAppWidget(Launcher.java:653)
174 AppWidgetHostView W at com.android.launcher.Launcher.onActivityResult(Launcher.java:335)
174 AppWidgetHostView W at com.android.launcher.Launcher.addAppWidget(Launcher.java:957)
174 AppWidgetHostView W at com.android.launcher.Launcher.onActivityResult(Launcher.java:332)
174 AppWidgetHostView W at android.app.Activity.dispatchActivityResult(Activity.java:3614)
174 AppWidgetHostView W at android.app.ActivityThread.deliverResults(ActivityThread.java:3001)
174 AppWidgetHostView W at android.app.ActivityThread.handleSendResult(ActivityThread.java:3047)
174 AppWidgetHostView W at android.app.ActivityThread.access$2300(ActivityThread.java:112)
174 AppWidgetHostView W at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1721)
174 AppWidgetHostView W at android.os.Handler.dispatchMessage(Handler.java:99)
174 AppWidgetHostView W at android.os.Looper.loop(Looper.java:123)
174 AppWidgetHostView W at android.app.ActivityThread.main(ActivityThread.java:3948)
174 AppWidgetHostView W at java.lang.reflect.Method.invokeNative(Native Method)
174 AppWidgetHostView W at java.lang.reflect.Method.invoke(Method.java:521)
174 AppWidgetHostView W at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
174 AppWidgetHostView W at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
174 AppWidgetHostView W at dalvik.system.NativeStart.main(Native Method)

and a problem loading widget on the home screen:

http://tinypic.com/r/snkqci/4

eric
Offline
Last seen: 5 months 3 weeks ago
Joined: 11/06/2008 - 22:02
Widget on hero

Are there any users that have the widget working ok on a Hero?

While I haven't figured out what the problem is, there is something I would like to try. Since Ashton is in the beta, I'll put a change in the next beta and we'll see if it helps.

Thanks Ashton for the stack trace...it was helpful getting me pointed in the right direction.

Also, can you try using the standard android music player widget and see if that works?

AshtonBRSC
Offline
Last seen: 7 years 3 months ago
Joined: 11/30/2008 - 11:41
The standard Android music

The standard Android music player widget works fine on SenseUI and the standard Android launcher.

commandercup
Offline
Last seen: 10 years 7 months ago
Joined: 10/18/2009 - 12:03
I just tried the android

I just tried the android music widget and it works fine. Now I can see the resemblance between the squished DC widget and the standard android one.

eric
Offline
Last seen: 5 months 3 weeks ago
Joined: 11/06/2008 - 22:02
Yep, it is similar

I'll try the one idea I have with the beta group and post how it goes.