Questions tagged [android-appwidget]

Android App Widgets are custom views that can be placed on the home screen of an Android device.

Android App Widgets are custom views that can be placed on the homescreen of an Android device.

Useful links

992 questions
11
votes
1 answer

Setting AppWidget background for one widget affects others too

The layout file for my widget begins at the top level with:
drmrbrewer
  • 11,491
  • 21
  • 85
  • 181
11
votes
1 answer

App Widget: can you specify a minimum AND a default size?

When you design an app widget, you specify a minimum width and height for that widget. When the user places a new widget, the minimum width and height appear to translate across to a default widget size (in terms of blocks). In other words, the…
drmrbrewer
  • 11,491
  • 21
  • 85
  • 181
11
votes
3 answers

Is it possible to preview the layout of an AppWidget in Eclipse?

I'm developing quite a few homescreen widgets and currently I have to install them on my emulator or my phone in order to preview the layout. Is it possible to preview the layout in Eclipse? When I open the XML of my layout in the preview mode, it…
Mridang Agarwalla
  • 43,201
  • 71
  • 221
  • 382
11
votes
3 answers

Android widget not updating - has incorrect widget ID

I've been working on a widget and making some advances (I hope) but still can't get it to do what I want. I have a configurator activity which works ok. When it closes I call the updateAppWidget method in the WordWidget class and the widget updates…
Sandy
  • 2,572
  • 7
  • 40
  • 61
10
votes
2 answers

android appwidget won't update from activity

I have a simple appwidget and I want to update it when an action occurs in an activity (in the same app). in onUpdate(), I immediately update the widget, which works fine. In my activity, I call the same static update method in my appwidget that is…
Jeffrey Blattman
  • 22,176
  • 9
  • 79
  • 134
10
votes
2 answers

Widget not appearing in widget list

I've read several questions about this on stackoverflow, and none of the answers are solving my problem. I'm trying to add a home screen widget to my app, and my widget does not appear in Android's widget list. I've tried rebooting the device,…
Andrew
  • 20,756
  • 32
  • 99
  • 177
10
votes
1 answer

appwidget freezes and refuses to update anymore: ignores updateAppWidget

So I have an app widget that is refreshing nicely, loading a new bitmap into an ImageView regularly like clockwork. Then, at some point, and silently, it will stop updating any further. I can tell from the log, and from activity at a server which…
drmrbrewer
  • 11,491
  • 21
  • 85
  • 181
10
votes
3 answers

appWidget not showing in launcher widget list in lollipop devices only

I have an app for android which I already made an appwidget for it before lollipop , for some reasons the widget doesn't appear in lollipop. However, it is showing up in the pre-lollipop devices. Here is my code: AndroidManifest.xml
10
votes
2 answers

Force Android widget to update

I respond to a button press on my appwidget in the onreceive method. When the button I pressed, I want to force the widget to call the onupdate method. How do I accomplish this? Thanks in advance!
strange quark
  • 5,205
  • 7
  • 41
  • 53
10
votes
3 answers

Media Control on Lock Screen like Google Play Music in android?

I had gone through Lock-screen Widget documentation, i implemented it but this is not what automatically place on main Lock Window. I searching for solution which provide Media Control over Main Lock-screen window (in Jelly Bean and above) like…
Tofeeq Ahmad
  • 11,935
  • 4
  • 61
  • 87
10
votes
2 answers

Use two pendingIntent on one view in Appwidget

I have a widget class (extending AppWidgetProvider), which has only one view (ImageView) in the widget's layout. When the user taps on widget, it updates and launches an activity with no problem. Also the widget updates every 30 minutes and activity…
RuNo280
  • 573
  • 4
  • 27
10
votes
3 answers

Update issue of an app widget using collection

I have created an app widget using collection for my app, The widget shows date and list of items on that particular date. Everything works fine and the widget is updating as required, but sometimes what happens while changing the date in the widget…
AndroidDev
  • 4,521
  • 24
  • 78
  • 126
10
votes
3 answers

Trouble with appwidget appWidgetIds (real and phantom instances of widget)

colleagues! My problem is: I`ve got an App Widget with Configuration Activity(min SDK - 2.1), it works properly but sometimes it begins working more slowly. I logged and found out that before updating my App Widget method onUpdate received an…
Alex Zezekalo
  • 1,031
  • 2
  • 17
  • 34
10
votes
5 answers

Passing custom parcelable object extra or in ArrayList to RemoteViewsService breaks appwidget

Basically what i want to do, is to pass a custom parcelable object via an intent, to the RemoteViewsService and thus to my RemoteViewsFactory. For some reason, this simply doesnt work :S Whenever i attempt to do this, the widget ends up displaying…
Chris6647
  • 178
  • 1
  • 2
  • 13
9
votes
1 answer

Getting resizeable appwidget dimensions (or getting around it)

I created a nice widet for my app. It just displays a list of items downloaded from a server. Well, to be precise, it only looks like a list, since ListView in RemoteViews is not supported in older android versions (which I want to support). I want…
user1234567
  • 1,832
  • 1
  • 18
  • 25
1 2
3
66 67