Questions tagged [android-remoteview]
134 questions
5
votes
1 answer
Notification RemoteView on click listener
So, after a lot of head scratching, I am at my wit's end. I have a media player RemoteViews in my notification and I would like to be able to access the play, pause, previous and next buttons.
I know that setOnClickPendingIntent() will be used to…

An SO User
- 24,612
- 35
- 133
- 221
5
votes
1 answer
How to get Notification content details in NotificationListenerService
I want to get the content details of RemoteView from StatusBarNotification while listening to NotificationListenerService
How can I get it ?

Shrenik
- 399
- 2
- 5
- 22
5
votes
1 answer
Android Remoteviews for expanded notifications
The expanded notifications introduced in Jelly Bean allows adding actions. The actions appear as buttons in a row. If I wanted to modify this with my own custom view I would consider a remoteview.
Do expanded notifications allow for remoteviews? I…

CQM
- 42,592
- 75
- 224
- 366
4
votes
1 answer
Set text of Android RemoteViews inside layout when include it multiple times
I refer to this question:
How do I access the views inside the layout when I reuse it multiple times?
I have the following two layouts:

lewen
- 43
- 4
4
votes
1 answer
Is it possible to Inflate RemoteViews in other application?
I am developing two android applications, one being the baseApp and other serving as a pluginApp. The aim is to extend the functionality of the baseApp when its corresponding plugin is installed. The pluginApp will contain XML layout files which…

Sukumar Gaonkar
- 147
- 2
- 12
4
votes
2 answers
Changing Notification RemoteViews Background Color
I've a problem changing my Background-Color with the Application-Theme.
NotificationCompat.Builder nBuilder = new NotificationCompat.Builder(this);
TypedValue typedValue = new TypedValue();
getTheme().resolveAttribute(R.attr.colorPrimary,…

the_dani
- 2,466
- 2
- 20
- 46
4
votes
2 answers
onDataSetChanged is not called in RemoteViewsFactory after notifyAppWidgetViewDataChanged is called
I'm trying to implement android app with widget, but found strange behavior on nexus 5 devices (i have two - one with lollipop, one with marshmallow). If I call AppWidgetManager.notifyAppWidgetViewDataChanged, widget's ListView content is refreshed…

Pew Pew
- 63
- 7
4
votes
0 answers
Setting custom font on widget remote view is not working
I am using following line of code to set custom font on widget using remoteView.setTextViewText(R.id.folder_widget_text_view, SS);but its not working at all, If i used the same code on normal TextView.setText(SS) method it works.
So is anything…

AndroidDev
- 4,521
- 24
- 78
- 126
3
votes
0 answers
Change ProgressBar color in RemoteViews on Android 11 devices
I am trying to change the colors of the ProgressBar created with shapes in RemoteViews. It works great on my phone, but on an Android 11 device the ProgressBar colors don't change. The problem occurs on Pixel 4xl with Android 11.
To achieve this I…

kajtam
- 31
- 2
3
votes
2 answers
Broadcast Receiver not receiving intent (RemoteViews / PendingIntent)
I am working on a custom notification which contains two buttons. I am using RemoteViews and used PendingIntent so that it will be received in the broadcast receiver. It is working fine in Huawei device but not working in Oppo & Infinix devices.
I…

Saify
- 469
- 1
- 5
- 20
3
votes
0 answers
Android: How to show data in widget coming from Firestore?
I am trying to fetch data from a firestore collection and show it as a list in a widget, i am not too experienced on how widget logic works so i thought that there might be a function that invokes the widget view to be updated when the data is…

Oscar Reyes
- 4,223
- 8
- 41
- 75
3
votes
0 answers
TransactionTooLargeException while notify notification
I have update time while recording in android, I using CountDownTimer
and update to remote view on notification. I have optimized smallest
data but still get TransactionTooLargeException.
public void showNotificationRecording() {
mRemoteViews =…

Công Hải
- 4,961
- 3
- 14
- 20
3
votes
0 answers
Notifications: how to change text color and background?
On Android 7 and following,
I would like to:
change the color of the notification text
change the background of the notification (using a light color, or a drawable)
still keep the standard header and action buttons (so I don't want to use an…

Daniele B
- 19,801
- 29
- 115
- 173
3
votes
2 answers
Chronometer start from specific value in Notification RemoteViews
I'm trying to start the chronometer in a new notification but from a paused(elapsed) "the elapsed time is got from another chronometer", not from zero
The start base in Notification RemoteViews.class of chronometer is different from the start base…

Mohamed Embaby
- 960
- 8
- 26
3
votes
1 answer
how to update custom layout notification actions?
i have a completely working notification with custom layout however i don't know how to update actions in specific situations
i'm using this notification to start and stop media player outside the app but i need some kind of updating the action…

pourya011
- 91
- 2
- 13