5,724 questions
4
votes
0
answers
179
views
Android 16 - Widget Updates are broken
On android 16 devices, widget-updates are broken. I update the widget like this:
appWidgetManager.updateAppWidget(appWidgetId, rv);
if (updateList) {
appWidgetManager....
1
vote
0
answers
123
views
Can I add StackView to the android widget if I use Glance?
I’m migrating my existing AppWidgetProvider-based widget to Jetpack Glance and I want to use a StackView (or ListView) inside the widget, backed by a RemoteViewsService (via setRemoteAdapter), just ...
0
votes
0
answers
125
views
How to implement frequently updating Android widgets (e.g. countdown or counter) in .NET MAUI despite 30-minute update limitation?
I'm developing a .NET MAUI app, and I want to implement a home screen widget on Android that displays a counter or clock — updating every second (like a stopwatch or real-time timer).
However, Android ...
0
votes
1
answer
35
views
How to change ImageView source to "Pause" when music is playing in HomeScreen in Kotlin Native
I'm working on a widget inside the HomeScreen in a Kotlin Native app. When the user clicks on an ImageView, a music file is played using a service — this part works correctly. Now, I want the ...
0
votes
0
answers
73
views
What's the difference between shapeAppearanceOverlay and shapeAppearance?
Various Material widgets (views) (e.g. com.google.android.material.imageview.ShapeableImageView) enable for transforming their corners by manipulating with the corners' parametres (like cornerFamily ...
0
votes
1
answer
47
views
Data in Widget disappears after placing it android
Data in my widget is disappearing when I place it on the screen. Only the layout is showing.
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:...
0
votes
1
answer
31
views
android widgets disappearing after some time
I have some widgets that exactly same code, some of my friends using my app say that widget that is generated by my app is disappearing after some time (like 4-5 days)
class MyWidgetProvider : ...
-1
votes
1
answer
46
views
Guidance in Android studio's Button widget
I am using Button and setting it's background as drawable image (Button not content any leading text, it's blank). I needed clickable image.
now the color of that png is black originally but some how ...
0
votes
1
answer
102
views
Glance actionStartActivity not opening activity [closed]
This is the content of my widget:
@Composable
private fun MyContent(glanceModifier: GlanceModifier = GlanceModifier, widgetData: WidgetData) {
InfoPanel(
glanceModifier = ...
0
votes
0
answers
34
views
Start forground service in home widget
When I use the start foreground service in the home widget, I get the error ForegroundServiceStartNotAllowedException. And when I use start service, it runs without error. However, I need to use the ...
1
vote
1
answer
246
views
Widget not updating on Android 15
My app widgets stopped updating after updating compileSdk and targetSdkVersion to 35. AppWidgetProvider method onUpdate is not called. I was searching for android 15 changes that could cause this but ...
0
votes
0
answers
32
views
Android Studio: How to create staggered/overlapped images
Using Android Studio, I want to create an android phone app that presents a field of staggered circles, similar to those in this picture. The important thing is the positions of the circles relative ...
1
vote
0
answers
82
views
provideGlance not called after configuring widget
I have a Glance widget, and when configuring it initially I save some IDs to Shared Preferences.
These IDs should be read in the provideGlance method, but it is not called after configuring the widget,...
0
votes
0
answers
129
views
Jetpack Glance Widgets UI does not update with new changes
I'm working on adding Widget following the guidance here https://developer.android.com/develop/ui/compose/glance and I'm noticing that any UI updates I add while building do not reflect on new builds. ...
3
votes
2
answers
176
views
Update existing Android widget to Glance Compose
I'm trying to migrate an existing Android widget to use Glance Compose, but haven't been able to find any documentation or answers on if it's possible to make it so that users with my existing widget ...