Questions tagged [appwidgetprovider]

A convenience class in Android to aid in implementing an AppWidget provider.

From the API page.

A convenience class to aid in implementing an AppWidget provider. Everything you can do with AppWidgetProvider, you can do with a regular BroadcastReceiver. AppWidgetProvider merely parses the relevant fields out of the Intent that is received in onReceive(Context,Intent), and calls hook methods with the received extras.

191 questions
6
votes
1 answer

Moving AppWidgetProvider under different Package name breaks active widgets

I have an AppWidgetProvider under package "com.developer.application" I tried moving this AppWidgetProvider under package "com.developer.application.widgets" Upon doing so I updated all references in the AndroidManifest to accommodate the…
5
votes
4 answers

Updating android app widget manually using a button on the widget

I have a Android App widget and a button on the widget. I have set the update time period to 30mins but I also want to update the widget whenever I touch the button. here's my code: RemoteViews remoteV = new…
iitum studant
  • 856
  • 2
  • 8
  • 24
5
votes
1 answer

System settings force close when opening widget picker

My users report a crash that occurs when they try to pick a widget with my application (not a launcher app). I'm using the standard widget picker code and it always worked and still works on all devices, except on LG G2 and LG G3. I've found some…
Lior Iluz
  • 26,213
  • 16
  • 65
  • 114
5
votes
2 answers

Android onEnabled/onDisabled never called

I'm having a problem with triggering of the onEnabled and onDisabled methods of the AppWidgetReciever. I have the actions specified, I also log every action in onRecieve method, but the only two actions I get are "APPWIDGET_UPDATE" and…
n00b
  • 2,738
  • 2
  • 20
  • 31
5
votes
3 answers

prevent triggering of onUpdate of WidgetProvider

I'm implementing a Widget that has a ConfigurationActivity, and must stay compatible to Eclair(2.1). The documentation about AppWidgetProviders onUpdate method states clearly that: ... .However, if you have declared a configuration Activity, this…
Rafael T
  • 15,401
  • 15
  • 83
  • 144
4
votes
1 answer

Rename AppWidgetProvider without breaking existing widgets

I found recently that after I renamed my class that extends AppWidgetProvider (as part of a code tidy-up), and installed the modified app, existing widgets would break, displaying just "Problem loading widget". Adding a fresh widget to the home…
drmrbrewer
  • 11,491
  • 21
  • 85
  • 181
4
votes
0 answers

Android app widget crashes launcher after indefinite length of time

I have a really strange problem with my app widget. There's no issues with dragging it to the homescreen, configuration or even functionality. Everything works as expected. But, after an arbitrary length of time, my launcher starts to crash. I've…
4
votes
0 answers

Android AppWidgetProvider: How To Interpret Min/Max Width/Height

I'm currently attempting to create an Android AppWidget that is 4x1 cells initially, but can be resized vertically by the user. I created a class that extends AppWidgetProvider, and overrode the onAppWidgetOptionsChanged() method to examine the…
Luke
  • 2,187
  • 1
  • 18
  • 29
4
votes
0 answers

android AppWidget not adding to homescreen on Lollipop

I developed an app that shows news feed on a home screen widget. Everything is OK on pre-Lollipop android devices as a result of the following scenario: A user enters their launchers' widget screen to choose/add a specific widget A user clicks on…
user1365685
4
votes
2 answers

Get the currently active widget

I have got all the widget app list.My problem is that I am not able to know that which widget is currently active in the phone. I am getting the list of widget apps by this code, AppWidgetManager manager1=AppWidgetManager.getInstance(ctx); …
4
votes
3 answers

Add widget name to the home screen along with widget

I have created a widget for an application. And widget is displaying along with the name under widget tab. When I drag the widget onto the home screen, the name below the widget is missing. I have already set the label property for the…
Aruna
  • 1,962
  • 4
  • 25
  • 50
4
votes
1 answer

Android appwidget remoteviews not updating

List remote view is not updating (I mean refreshing itself) when I am updating the widget from some activity. It comes up till onUpdate of app widget (log showing up). but does not enter into adaptor of list view to inflate it with fresh data…
user2660060
  • 151
  • 1
  • 8
4
votes
1 answer

makescaleupanimation from appwidget

Some appwidgets are using the makeScaleUpAnimation (introduced in JellyBean 4.1) when starting an activity from the widget. How is this possible when you can't reach the view from your widget provider? Is there any way to get the whole appwidgets…
4
votes
2 answers

Android appWidgetProvider onEnabled never called on tablet

Scenario 1: Device is loaded I add first widget OneX -> Calls onEnabled | Galaxy Tab -> doesnt call onEnabled. Scenario 2: Device is booted with widget already on screen. OneX -> Calls onEnabled | Galaxy Tab -> Calls onEnabled But It must be…
IAmGroot
  • 13,760
  • 18
  • 84
  • 154
3
votes
0 answers

onUpdate() callback not called for app widget after application update

I have developed a simple Android application containing a widget showing the current location, the full code is published on GitHub. I implemented the application according to the official documentation from Google, but I encountered a strange…
1
2
3
12 13