One Thing more I am using 1.5 SDK On Wed, Mar 10, 2010 at 4:06 PM, Gulfam <gulfa...@gmail.com> wrote:
> Hi all, > > I am trying to make an app widget, and i want to add three things in > this widget > 1: Text View > 2: Button > 3: Rating bar > > I have added first two things successfully but when i have start to > add "Rating Bar" in the widget its not adding and showing "Problem > loading widget" message where should be widget with three thigs, and > in log cat it show error like this > ************************************************ > updateAppWidget couldn't find any view, using error view > android.view.InflateException: Binary XML file line #13: Error > inflating class <unknown> > at android.view.LayoutInflater.createView(LayoutInflater.java:512) > at > > com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java: > 56) > at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java: > 562) > at android.view.LayoutInflater.rInflate(LayoutInflater.java:617) > at android.view.LayoutInflater.inflate(LayoutInflater.java:407) > at android.view.LayoutInflater.inflate(LayoutInflater.java:320) > at android.widget.RemoteViews.apply(RemoteViews.java:830) > at > android.appwidget.AppWidgetHostView.updateAppWidget(AppWidgetHostView.java: > 167) > at android.appwidget.AppWidgetHost.createView(AppWidgetHost.java: > 218) > at com.android.launcher.Launcher.completeAddAppWidget(Launcher.java: > 653) > at com.android.launcher.Launcher.onActivityResult(Launcher.java:335) > at com.android.launcher.Launcher.addAppWidget(Launcher.java:957) > at com.android.launcher.Launcher.onActivityResult(Launcher.java:332) > at android.app.Activity.dispatchActivityResult(Activity.java:3595) > at android.app.ActivityThread.deliverResults(ActivityThread.java: > 3001) > at android.app.ActivityThread.handleSendResult(ActivityThread.java: > 3047) > at android.app.ActivityThread.access$2300(ActivityThread.java:112) > at android.app.ActivityThread$H.handleMessage(ActivityThread.java: > 1721) > at android.os.Handler.dispatchMessage(Handler.java:99) > at android.os.Looper.loop(Looper.java:123) > at android.app.ActivityThread.main(ActivityThread.java:3948) > at java.lang.reflect.Method.invokeNative(Native Method) > at java.lang.reflect.Method.invoke(Method.java:521) > at com.android.internal.os.ZygoteInit > $MethodAndArgsCaller.run(ZygoteInit.java:782) > at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) > at dalvik.system.NativeStart.main(Native Method) > Caused by: android.view.InflateException: Binary XML file line #13: > Class not allowed to be inflated android.widget.RatingBar > at android.view.LayoutInflater.failNotAllowed(LayoutInflater.java: > 524) > at android.view.LayoutInflater.createView(LayoutInflater.java:471) > ... 25 more > **************************************************************** > I want to know is it possible to add "Rating Bar" in a widget and if > yes then How??????? > > Thanks in advance. > Gulfam Hassan > -- 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