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

Re-configure an existing AppWidget

When I click and hold a widget on the homescreen of my HTC Incredible 2 with the default Sense launcher I get drag destinations for both "Remove" and "Edit" at the bottom of the screen. How do I enable the use of the "Edit" option in my own widget? …
Mike
  • 2,637
  • 5
  • 29
  • 40
0
votes
2 answers

Implementing Licensing service for Android AppWidget

Implementing application licensing is quite straight forward but it looks as though the example code is tailored for a full fledged android application and not a widget. Like, in application, we mostly add the licensing code either in Splash screen…
Veer
  • 2,071
  • 19
  • 24
0
votes
1 answer

Do I need to call updateAppWidget method of AppWidgetManager from the main/UI thread?

I've read the developers' guide about App Widgets and I've understood that to avoid ANR errors you should start a service within the onUpdate method of your AppWidgetProvider to update the widgets... I have a question about such a service: when we…
0
votes
2 answers

How to initialize the already added app widget on application start?

I need to subscribe to database changes using an Observer in an app widget. The documentation says the right place for such setup is onEnabled() in AppWidgetProvider. But, onEnabled() is only called when a new widget is added. If the app is started…
Yulia Rogovaya
  • 924
  • 1
  • 8
  • 26
0
votes
2 answers

Searching for better app widget "workflow"

this may not be your typical question.. but I figured I would give it a shot. I have tried Google searches for this type of question, though apparently I'm using the wrong queries. So my question is basically how to make my widget "flow" better.…
Xero
  • 92
  • 1
  • 7
0
votes
1 answer

ListView in AppWidget 'exceeding' widget dimensions

I have a ListView inside an AppWidget. Each row of the ListView has a custom layout, AppWidget specifies a minHeight, as required. The problem is that ListView exceeds the dimensions of the AppWidget, and some rows simply hang below the widget…
Chaitanya
  • 2,039
  • 4
  • 25
  • 32
0
votes
1 answer

How to proper test appwidget?

I have an appwidget which is used as a button. I would like to thoroughly test it as it launches important activities for my application. How is it possible to do so?
JustCurious
  • 1,848
  • 3
  • 30
  • 57
0
votes
1 answer

Test appwidget using robotium

Is it possible to exit application, long press on home screen, select an appwidget, install it and then click on it using robotium?
JustCurious
  • 1,848
  • 3
  • 30
  • 57
0
votes
1 answer

Change between displaying different controls in App widget

I'm developing an App widget. I want the widget to alternate between displaying a image and, displaying some text. The layout is designed using a RelativeLayout like this.... bla bla....
Erik Z
  • 4,660
  • 6
  • 47
  • 74
0
votes
2 answers

android sqlite database already closed error

I have an app with a sqlite database. I created my own database class that holds an instance of SqliteDatabase . The class implements my queries, open, close, etc. (the class is NOT a singleton). I have an activity, a service and an appwidget in my…
Ran
  • 4,117
  • 4
  • 44
  • 70
0
votes
1 answer

Android AppWidget - Curious Sleep pattern

Probably a newbie question. I have tried playing with android AppWidgetProvider onUpdate method and using "sleep" to induce a small delay. The update is repeated using a loop - here is the thing: with the loop counter set to 20 and sleep time one…
shermy
  • 1
  • 3
-1
votes
1 answer

Android - how can I handle restarts of appWidgets containers?

I'm creating both an appWidget container and appWidgets. I have a problem which I think is because of the created appWidgets - each time I restart (kill and then open) the appWidget container, the appWidget is shown, but it no longer handles…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
-1
votes
1 answer

Android Appwidget stops updating when adding second type of AppWidget to App

I have an application which has an Appwidget. All works well. Now I have decided to add a second AppWidget to my application. I have created a second receiver in my manifest and new provider class etc. I think I have it all wired correctly as I am…
Yossi
  • 1,226
  • 1
  • 16
  • 31
-1
votes
5 answers

FLUTTER showModalBottomSheet

how can i controll the default pop property of bottom sheet.Like I want to asign a value to a variable when showModalBottomSheet is popped .I have tried to do with controllers
-1
votes
1 answer

Why is onReceive called multiple times?

I am running a worker in a glance composable on android. why is onReceive being continuously called in an infinite loop? What am I missing here? class MyWidget : GlanceAppWidget() { @Composable override fun Content() { val work =…