FYI All

<receiver android:name="WidgetProvider"
                          android:label="@string/wiget_title"
                          android:icon="@drawable/widget_icon">
                <intent-filter>
                        <action
android:name="android.appwidget.action.APPWIDGET_UPDATE" />
                </intent-filter>
                <meta-data android:name="android.appwidget.provider"
               android:resource="@xml/smptwidget" />
</receiver>

Ne0

On 16 Mar, 13:31, Ne0 <liamjamesalf...@googlemail.com> wrote:
> Thanks Mark.
>
> On 16 Mar, 12:15, Mark Murphy <mmur...@commonsware.com> wrote:
>
> > Ne0 wrote:
> > > ...to the application icon?
>
> > > Essentially i have an application that has a few different activities
> > > and services. I want a widget that indicates whether or not one of the
> > > services is running and starts/stops it on a press. The widget works
> > > fine and does what i want, though when you long press the home screen
> > > and select widgets, the widget appears with the same icon and name as
> > > the application package.
>
> > > Is there a way to change this icon and name to an icon and name that
> > > better represents what the widget does rather then the application?
>
> > Put android:name and android:icon attributes on your <receiver> element
> > for the AppWidgetProvider.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > Android Training in US: 14-18 June 2010:http://bignerdranch.com

-- 
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

Reply via email to