How do I give a Android App Widget a Label/Name
You can set the name of your app widget to be displayed in the widget picker by adding android:label="the name of my appwidget"
to the receiver that handles appwidget related intents in AndroidManifest.xml
. It is documented in a somewhat obscure place: http://developer.android.com/reference/android/appwidget/AppWidgetProviderInfo.html#label
Example of use in AndroidManifest.xml
:
<receiver android:name=".widget.MyWidgetProvider" android:label="My App Widget"> ...</receiver>
Note: this property was deprecated in API 21, but still works as of API 29.