Why is my AppWidget not using the label provided?

I've specified android:label in the XML app widget provider, but the name specified is not being used when you do Home->Widgets->... Instead the name of the app is used, the default if no label is provided. The dimensions from the configuration are being used correctly.

<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" android:initialLayout="@layout/widget_layout" android:minWidth="146dp" android:minHeight="146dp" android:label="@string/widget_title" android:updatePeriodMillis="21600000" > </appwidget-provider>

And then in my resources:

<string name="widget_title">My Widget Name</string>

The string resource referenced in the widget XML config is validated by the IDE, so why is the string resource not being used?

-------------Problems Reply------------

You need to specify android:label="@string/widget_title" in AndroidManifest.xml in receiver section for your widget.

Not in appwidget-provider in your widget_info.xml.

Category:android Views:0 Time:2011-04-05

Related post

  • How to programmatically disable onClick handler on Android AppWidget Button 2010-04-15

    I have a Button on appwidget, that I need to 'enable'/'disable' programmatically from a Service. First idea was to call setBoolean(R.id.buttonid, "setClickable", false) to disable it, but apparently you can't call setClickable remotely. Another idea

  • Android Home Screen Widget (icon, label - style) 2010-04-16

    I'm trying to create an icon/widget (1 cell x 1 cell) that can be placed on the home screen of android. The widget will look and act exactly like the other standard shortcuts in android. It will have an icon and under that a label, it will be selecta

  • Title of Android AppWidget below widget-icon 2010-08-26

    I am working on a small application which should be represented by an AppWidget. The AppWidget should look like many other widgets on my HTC Desire. Most of them consist of an icon and a title below the icon. The title always looks identical, it is w

  • How to broadcast an intent to a specific appwidget? 2010-10-31

    I am creating a appwidget which needs to update on a specific interval. I use AlarmManager for this. I want to have the alarm run the onUpdate() method in the AppWidgetProvider. //Create the intent Intent intent = new Intent(AppWidgetManager.ACTION_A

  • Getting SecurityException when trying to install appWidget in HomeScreen 2010-11-30

    am having a little trouble here. i don't know why i am getting a SecurityException, when trying to install my AppWidget on the home screen?. i don't know what will help to solve this but here is the simplified logcat output and my Android Manifest fo

  • How do I give a Android App Widget a Label/Name 2010-12-27

    I just finished my first app, it works fine and I've made it a home screen widget. But it doesn't have the name under it. The tutorial i am following says nothing about it, Shouldnt this just be the name of the app and be pulled in automatically? If

  • Problems updating very simple appwidget 2011-02-26

    I've been following this tutorial trying to make a very simple clock widget for android. I'm able to create the widget, but it does not seem to update. I find this very strange as my code seems to be essentially what the same as tutorial at the andro

  • Update AppWidget Periodically from a service 2011-04-14

    This is what I want from my AppWidget: configuration activity comes up, when widget is added to the screen // good so far after configuration is saved, a service is started that updates the widget // good so far schedule an alarm periodically to run

  • Android appwidget crashes process com.android.settings on android v2.1, need work around 2011-08-16

    I'm working on an android appwidget and it works fine in all android versions I tried (emulator 1.5, 1.6, 2.3), but not 2.1 (physical device, LG GT540 upgraded to 2.1). I tested it on a Samsung GT I5801 fresh out of the box with the 2.1 OS and it wor

  • First instance of AppWidget doesn't respond, but additional instances do? 2011-08-30

    I'm an experienced J2ME developer, but new to Android. I've attempted to create an AppWidget and I'm having a problem. I've "boiled-down" my problem into a simple example called TestWidget. [Please note that I would have included some small and simpl

  • Show existing activity from AppWidget click 2011-09-29

    I have a problem opening an activity from an appwidget. I have tried different Intent flags, PendingIntent and launch modes without any luck. I have read diffent examples here and many other places without finding the solution. Right now when I click

  • Android AppWidget not receiving APPWIDGET_ENABLED intent 2011-11-19

    I'm trying to create my first AppWidget using the AlarmManager class so that I can update more frequently than every 30 minutes. I followed this tutorial as a basis for setting up my widget, but for some reason I cannot get the updates to begin prope

  • Android AppWidget - Not getting a result back from an activity 2012-01-12

    I've created an Android Widget. I have a problem of getting a result from an activity back to it's AppWidgetProvider parent. I looked for an answer over the web, did exactly what written in all the sites and it's not working. I put a break point in o

  • Manifest has to have a label error 2012-03-04

    When I tryed to publish my android app (for Android 2.1) on http://slideme.org I got an error wich says Manifest has to have label, but I have labels every where where I can put them. So if someone can point me out where is problem please respond. He

  • Android appwidget turns other widget into the widget added & second widget wont work? 2012-04-21

    I am making an android app that has 2 widgets. I have 1 widget set up and working, and the second widget is recognized in the widget list & loads correctly, but: If I already have widget 1 on the screen when I add widget 2, both widgets change to

  • Change visibility of ASP.NET label with JavaScript 2008-08-11

    I have a ASP.NET page with an asp:button that is not visible. I can't turn it visible with JavaScript because it is not rendered to the page. What can I do to resolve this? --------------Solutions------------- If you need to manipulate it on the clie

  • Formatting text in WinForm Label 2008-08-14

    Is it possible to format certain text in a WinForm Label instead of breaking the text into multiple labels? Please disregard the HTML tags within the label's text; it's only used to get my point out. For example: Dim myLabel As New Label myLabel.Text

  • Java Coding standard / best practices - labeled break/continue 2008-08-19

    Sometimes a labeled break or continue can make code a lot more readable. OUTERLOOP: for ( ;/*stuff*/; ) { //...lots of code if ( isEnough() ) break OUTERLOOP; //...more code } I was wondering what the common convention for the labels was. All caps? f

  • How To Get Label Of Combobox to Fade In Flex 2008-08-20

    I've got a combobox that sits inside of a panel in Flex 3. Basically I want to fade the panel using a Fade effect in Actionscript. I can get the fade to work fine, however the label of the combobox does not fade. I had this same issue with buttons an

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.097 (s). 11 q(s)