[android-developers] Problem Loading Widget
I am seeing Problem Loading Widget on the home screen. Several things seem odd about this. First there is no mention of which widget it tried to load. Never the less the home screen is covered with Problem Loading Widget. Did the system not know the name of the widget it was trying to load even though you can clearly see it in the list of widgets. Secondly, I was debugging and did not see error in the LogCat file during this nor in the console. Where does one look for the CAUSE? thanks. -- 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
[android-developers] Problem loading widget: XML issue?
So I'm attempting to make a widget at someone's request. I'm new to Android development, so this widget isn't terribly complex. However, I'm having some difficulties with the layout. My main.xml file looks like this: ?xml version=1.0 encoding=utf-8? LinearLayout android:id=@+id/LinearLayout01 xmlns:android=http://schemas.android.com/apk/res/android; android:background=@drawable/widgetframe android:layout_height=wrap_content android:layout_width=wrap_content android:layout_gravity=center TableLayout android:id=@+id/TableLayout01 android:layout_width=fill_parent android:stretchColumns=0,1,2 android:layout_marginTop=20dip android:layout_marginBottom=20dip android:layout_marginLeft=25dip android:layout_marginRight=25dip android:layout_gravity=center_vertical android:layout_height=wrap_content TableRow android:id=@+id/TableRow01 android:layout_width=fill_parent android:layout_height=fill_parent android:layout_gravity=center_vertical Button android:text=0 android:id=@+id/Button01 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_vertical/Button Button android:text=0 android:id=@+id/Button02 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_vertical/Button Button android:text=0 android:id=@+id/Button03 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_vertical/Button/TableRow TableRow android:id=@+id/TableRow02 android:layout_gravity=center_horizontal android:layout_width=fill_parent android:layout_height=wrap_content TextView android:text=Missed Calls android:id=@+id/TextView01 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_horizontal/TextView TextView android:text=Messages android:id=@+id/TextView02 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_horizontal/TextView TextView android:text=New Emails android:id=@+id/TextView03 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_horizontal/TextView /TableRow /TableLayout /LinearLayout So it's a layout of two rows, the first row consisting of three buttons and the second row consisting of three TextViews. When I try to test the widget, however, I get a widget with the words Problem loading widget on my AVD. Is there an issue with my XML, or is it something else? I am writing this widget using Android v2.0, SDK 5. Thank you for your help. -- 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
Re: [android-developers] Problem loading widget: XML issue?
So I'm attempting to make a widget at someone's request. I'm new to Android development, so this widget isn't terribly complex. However, I'm having some difficulties with the layout. My main.xml file looks like this: ?xml version=1.0 encoding=utf-8? LinearLayout android:id=@+id/LinearLayout01 xmlns:android=http://schemas.android.com/apk/res/android; android:background=@drawable/widgetframe android:layout_height=wrap_content android:layout_width=wrap_content android:layout_gravity=center TableLayout android:id=@+id/TableLayout01 android:layout_width=fill_parent android:stretchColumns=0,1,2 android:layout_marginTop=20dip android:layout_marginBottom=20dip android:layout_marginLeft=25dip android:layout_marginRight=25dip android:layout_gravity=center_vertical android:layout_height=wrap_content TableRow android:id=@+id/TableRow01 android:layout_width=fill_parent android:layout_height=fill_parent android:layout_gravity=center_vertical Button android:text=0 android:id=@+id/Button01 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_vertical/Button Button android:text=0 android:id=@+id/Button02 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_vertical/Button Button android:text=0 android:id=@+id/Button03 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_vertical/Button/TableRow TableRow android:id=@+id/TableRow02 android:layout_gravity=center_horizontal android:layout_width=fill_parent android:layout_height=wrap_content TextView android:text=Missed Calls android:id=@+id/TextView01 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_horizontal/TextView TextView android:text=Messages android:id=@+id/TextView02 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_horizontal/TextView TextView android:text=New Emails android:id=@+id/TextView03 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_horizontal/TextView /TableRow /TableLayout /LinearLayout So it's a layout of two rows, the first row consisting of three buttons and the second row consisting of three TextViews. When I try to test the widget, however, I get a widget with the words Problem loading widget on my AVD. Is there an issue with my XML, or is it something else? I am writing this widget using Android v2.0, SDK 5. Thank you for your help. TableLayout and TableRow are not valid layouts for an app widget. Use LinearLayout, RelativeLayout, and FrameLayout. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- 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
[android-developers] Problem loading widget
I am new to android development.I created an app on homescreen.Though it is getting added onto the homescreen widget list,if i select my widget a black box appears on the homescreen saying Problem loading widget.Please help! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Problem Loading Widget
Hi I have made a customized widget Whenever I Long Click on Home Screen And Click on my widget,then Problem Loading Widget comes for a while and then widget is launched successfully... Can anybody tell me,why Problem Loading Widget is coming... thanks in advance..any help will be appreciated. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---