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
0
votes
1 answer

Android Lock Screen App Widget: how to wake up the device (and send it back to sleep again after)

Hi and thanks for your help. I have the following situation. I have a Lock Screen Widget, when the user taps it the App Widget perform some tasks (updates itself). The point is that: if the phone is in sleep mode and the user taps the App Widget,…
Lisa Anne
  • 4,482
  • 17
  • 83
  • 157
0
votes
1 answer

Static Android homescreen widget

I´ve developed an android application with it´s own widget. To bring the widget in the right form, I set minWidth to 300dp and minHeight to 400 dp. When placing it to the homescreen, it has the right dimensions, but anyway, it´s possible to resize…
Marian Klühspies
  • 15,824
  • 16
  • 93
  • 136
0
votes
1 answer

How can get context in my Own method or static block?

I am in AppWidgetProvider class. I want to call a static block before any callback method, but I need the context inside my static block. How can I get that? Below is my code: public class widgetClass extends AppWidgetProvider { static { //…
Shakeeb Ayaz
  • 6,200
  • 6
  • 45
  • 64
0
votes
1 answer

AppWidgetProvider of an sticker widget

guys. I'm creating a sticker widget, witch is basically an image (in some dimension) that the user can put at the home screen. It does absolutely nothing. The idea is to sell a sticker with some logos of a nonprofit organization, so it can work as a…
0
votes
1 answer

change imageview's image

i have an imageview in my layout, and i want it to change every x second with appwidgetprovider activity. but everytime i use findViewById it gives me an error that The method findViewById(int) is undefined for the type Widget . this is my…
user2033624
  • 21
  • 2
  • 3
0
votes
2 answers

Android app widget issue on android 2.x device But works smoothly on android 4.x device?

I am trying display app widget( with configuration activity. where user can choose the category what to display on app widget). I can smoothly run the application with app widget in android 4.x device. everything works fine but when it comes to…
Krishna Shrestha
  • 1,662
  • 14
  • 38
0
votes
0 answers

Widget crash after calling notifyAppWidgetViewDataChanged due to no connection available

If there is no connectioin available on the android device, my Android widget crashed when i call notifyAppWidgetViewDataChanged method. In fact, when i call this method, there is an http request to load data from server. How i can do in order to…
pxrb66
  • 119
  • 1
  • 1
  • 9
0
votes
1 answer

AppWidgetProvider, how to determine the AppWidgetProvider for a specific widget

I need a way to determine which AppWidgetProvider is active for the current widget in the configure Activity. My current solution results in a NullException on some devices, the appWidgetInfo.provider is null somehow. Is there a better way to…
user634545
  • 9,099
  • 5
  • 29
  • 40
0
votes
1 answer

updatePeriodMillis in onReceive() of class extended by AppWidgetProvider not work

Not sure if this gonna be answered by another thread, but for awhile of seeking the answer, i didn't found one. I'm implement an app widget to display some text every 30mn, but it didn't update until I click on the widget. Here is my onUpdate…
Edward Sullen
  • 157
  • 1
  • 5
  • 18
0
votes
2 answers

Problems on getting appWidgetId from the configure Activity

I'm creating an Android application with has some widgets. Everything was working till I started creating the settings Activity... First of all, my code: [Edit] Just trying to be clear: the Bundle (from intent.getExtras()) is ALWAYS null... What do…
0
votes
1 answer

Android Widget (AppWidgetProvider) > 'two state' button like a toggle button.. and WindowManager

I finally managed to create a SIMPLE widget (1x1 cell) with ONE button that does something. In my case (for now) a toast. This was actually quite hard to do. Widgets work different from normal app's. My code so far of all important…
0
votes
1 answer

java.lang.NoClassDefFoundError at Runtime Android Widget

I have a problem during runtime of my Android widget with Android 2.3.3 and older. When i install my widget on the screen, this error is printed : 11-03 10:26:31.127: E/AndroidRuntime(404): FATAL EXCEPTION: main 11-03 10:26:31.127:…
pxrb66
  • 119
  • 1
  • 1
  • 9
0
votes
1 answer

Android changing screen brightness from a widget

I am trying to change screen brightness from a widget. Basically, I have followed the suggestion from the following page. Changing the Screen Brightness System Setting Android So far, this is what I have been able to do. 1. I have a main activity…
Hiro
  • 137
  • 1
  • 1
  • 7
0
votes
2 answers

How to fix declaration of AppWidgetProvider which is ignoring minwidth and minheight

I have declared an AppWidgetProvider using
Paul D'Ambra
  • 7,629
  • 3
  • 51
  • 96
0
votes
1 answer

Why SystemClock.sleep(x) prevents update of AppWidget?

I have a problem updating my AppWidget from within a Service. The problem seems totally illogical to me, so I make a TestService to hunt the mistake down. Here is my testlayout I use:
Rafael T
  • 15,401
  • 15
  • 83
  • 144
1 2 3
12
13