Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
37 views

Following code works in api<34 and the entire notification area is occupied by the remoteview layout. But an unwanted margin/border in the notification is seen when same code is executed on android ...
Divyansh Luthra's user avatar
4 votes
1 answer
203 views

I'm encountering a crash in production that I cannot reproduce locally. The crash is logged in Crashlytics as follows: Fatal Exception: android.app.RemoteServiceException$...
Furqan Khan's user avatar
0 votes
2 answers
101 views

I have created a command prompt widget for Android using Xamarin, and I'm trying to figure out how to set up my ListViewFactory class and RemoteViewsService class to have individual data per widget. ...
Lions L's user avatar
  • 11
1 vote
0 answers
24 views

I am suffering problem with too much notifications for my app and I am trying to divide single Notification to RemoteViews with multiple Views and serve swipe gesture on each of them (to dismiss ...
janusz j's user avatar
  • 329
0 votes
1 answer
269 views

Based on the official documentation, I can see TextClock seems to be supported now in new GlanceAPI as a Remote view, but I can not used in our example code, class RemoteWidget : GlanceAppWidget(...
Jitendra Prajapati's user avatar
0 votes
0 answers
60 views

i'm trying to implement customizable widgets by drawing a Bitmap and applying it to an ImageView. Visualization works fine but I can't intercept the touches depending on the area clicked by the user. ...
Walter's user avatar
  • 111
1 vote
1 answer
460 views

I see very little information on how to test RemoteViews. For example, I have used UiAutomator to place an app widget on the homescreen and now i want to test if it updates correctly when I click on ...
mars8's user avatar
  • 1,346
0 votes
1 answer
382 views

RemoteViews allow me to setTextSize TextView like this: views.setFloat(R.id.appwidget_text, "setTextSize", fontSize); but only with one argument. It will set font size in sp. I dont want ...
ellr's user avatar
  • 3
0 votes
1 answer
535 views

I am creating a widget for Android but I'm facing an issue. I have a container in my main widget layout, and I want to add it new line in the list dynamically. For that, I use the addView methods on ...
Elex XVII's user avatar
1 vote
1 answer
589 views

My app widget (ListView showing game scores) works fine when created on the home screen, but when I call appWidgetManager.updateAppWidget(id, R.id.appwidget) inside the provider, there is no reaction ...
RufusInZen's user avatar
  • 2,199
3 votes
1 answer
592 views

I'm trying to set the background resource of my layout in my app widget. I'm using setBackground resource with RemoteViews like so: val views = RemoteViews(context.packageName, R.layout....
Amy's user avatar
  • 1,450
0 votes
1 answer
660 views

I have a Widget for my Android App. On this Widget there is a button. The user can freely choose the color of the button. So I also have to set the colors for the different button states dynamically. ...
OPunktSchmidt's user avatar
1 vote
0 answers
55 views

I have the following setup for a media style notification: NotificationCompat.Builder nc = new NotificationCompat.Builder(this, CHANNEL_ID); NotificationManager nm = (NotificationManager) this....
juztcode's user avatar
  • 1,433
0 votes
1 answer
189 views

I have a radio button inside the remote view of android. Upon clicking the layout of the radio button, it is getting selected but no animation or ripple effect is being shown. How to show the default ...
Sachin Malik's user avatar
-1 votes
1 answer
713 views

I have an app with a widget showing a listview. I want to update the list based on the recipe that user opens in the app. To do that first I send a broadcast with an extra integer when activity is ...
MarcinBLN's user avatar
0 votes
0 answers
83 views

I have to create a custom notification like what's app calling notification. Notification does not create if I add my custom layout to the NotificationCompat Builder. Below is my code to create ...
Rimsha Butt's user avatar
0 votes
2 answers
1k views

Edit 4/5: My getViewAt function is now this, and still no effect occurs override fun getViewAt(position: Int): RemoteViews { val v = (context.getSystemService(Context....
Richard Robinson's user avatar
5 votes
3 answers
4k views

I have been trying to show a .gif image inside my custom notification using Glide library. I am only able to show static image on the notification panel. RemoteViews collapsedView = new ...
Md. Kamrul Amin's user avatar
1 vote
2 answers
915 views

Cant quite figure this one out. I have a button on my Activity that once pressed opens a notification. This custom notification has a button on it. I'm trying to change the notifications background ...
Lin S's user avatar
  • 63
0 votes
0 answers
78 views

I've got an ImageButton in my homescreen widget. It is supposed to get larger/smaller when the user resizes the widget but stay perfectly round. The following code seems works to work on the emulator ...
einUsername's user avatar
  • 1,619
6 votes
0 answers
1k views

I am creating a custom notification layout for my application. NotificationCompat.Builder builder = new NotificationCompat.Builder(context, NOTIFICATION_CHANNEL_ID) .setSmallIcon(R....
Shashank Degloorkar's user avatar
1 vote
2 answers
1k views

I implemented the firebase cloud messaging (FCM) service in my app and I get notifications with my custom layout but just when the app is in the foreground and the reason is clear, It is because of ...
Alireza Noorali's user avatar
0 votes
0 answers
575 views

I have a service that I need to stop using a pending intent from the remoteview that is showing a custom notification. I have set the pending intent and registered the broadcast receiver in the ...
Pemba Tamang's user avatar
1 vote
1 answer
1k views

I saw in documentation: EXTRA_APPWIDGET_PREVIEW An extra that can be passed to requestPinAppWidget(android.content.ComponentName, android.os.Bundle, android.app.PendingIntent). So I tried ...
qkx's user avatar
  • 2,614
-1 votes
1 answer
127 views

I need to format date and time in the RemoteViewsFactory class. I know how to use DateFormat/SimpleDate Format. I'm doing it like in the thread below but the app keeps stopping when pressing on the ...
LeadBox4's user avatar

1
2 3 4 5
7