Questions tagged [android-remoteview]
134 questions
45
votes
4 answers
How to update Notification with RemoteViews?
I'm creating a notification with RemoteViews from a custom Service, which is running with notification in a foreground mode (that is, service will remain active as long as notification is visible to user). Notification is set as Ongoing so user…

Siniša
- 2,988
- 4
- 24
- 36
15
votes
4 answers
play/pause button image in notification ,Android
I have implemented music player which fires a custom notification when stream audio is playing.
Everything is working and I can play/pause the audio using the button in the notification. The only problem is the image button: it can't change the…

Twinkle
- 430
- 1
- 5
- 21
12
votes
3 answers
Load ImageView from URL into RemoteView of a Home Screen Widget
I'm developing a simple Widget to my Android app based on the Google StackWidget sample: https://android.googlesource.com/platform/development/+/master/samples/StackWidget/src/com/example/android/stackwidget/StackWidgetService.java
I'm using the…

notGeek
- 1,394
- 5
- 21
- 40
12
votes
1 answer
Android USB Debugging Port Forward Error
I am having a problem with the android remote debug port forwarding. I need to get ports in the 44300-44399 range forward because visual studio debugging only allows SSL on those ports, but I can never get those ports to forward even though the…

Dan
- 1,101
- 1
- 9
- 30
10
votes
1 answer
RemoteView addView not working
I have an app widget and I'd like to add Views (TextView, etc.,) to the RemoteView but it never shows up.
Here goes the code:
RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.widget_layout);
RemoteViews newView = new…

Tony G.
- 220
- 1
- 3
- 11
9
votes
2 answers
Android 4.x RemoteControlClient.setTransportControlFlags() not working?
I'm trying to use the RemoteControlClient class to support the lock screen player with my app. One issue is that setting the transport control flags seems like they don't work properly.
For example I'm trying to just show a play/stop icon no…

Jona
- 13,325
- 15
- 86
- 129
9
votes
1 answer
Change android notification text dynamically
I am trying to make a notification for a music player with controls. I am successfully listening to the button click events and functions are being fired properly. Only problem i am facing is changing the text of notification on these click events.…

Mercurial
- 3,615
- 5
- 27
- 52
7
votes
2 answers
is it possible to add video in android push notification?
Is ti possible too embedded video into android rich notification as it possible in iOS? I know that the android officially still do not support that, but it may be some tricky way to improvise that? :)
Thanks in advance.

Dragisa Dragisic
- 731
- 2
- 9
- 19
7
votes
1 answer
Android 5+ remoteviews ripple effect
Is it possible to have ripple effect on button which is part of remoteviews?(notification with custom layout or widget)
I tried to set button background to drawable notification_material_media_action_background:

Martin Vandzura
- 3,047
- 1
- 31
- 63
6
votes
1 answer
ViewFlipper inside Remoteview showNext() and showPrevious() not working
I am working in a project where I need to use ViewFlipper view inside Remoteview in Notification bar. Currently am facing issue with a showNext() and showPreview(). But unfortunately showNext() and showPreview() are not called when I call the…

Chandru
- 5,954
- 11
- 45
- 85
6
votes
0 answers
notification with remote view shows blank
When i am creating notification without remote view it's working fine,but when i try to use remote view,the notification shows a blank screen.
Here is my code for notification:-/
RemoteViews remoteViews = new RemoteViews(getPackageName(),
…

Inam Jamil
- 101
- 1
- 1
- 4
6
votes
2 answers
How do I set a color filter on a drawable which will be used in a RemoteView?
I have an ImaveView on a RemoteView for which I have to apply a filter. When not in the RemoteView this is what I do and it works well:
Drawable icon = getResources().getDrawable(R.drawable.icon);
icon.setColorFilter(color,…

casolorz
- 8,486
- 19
- 93
- 200
5
votes
0 answers
RemoteServiceException with no extra info
After updating a version of our app we started receiving the following crash reports on the Google Play Console:
android.app.RemoteServiceException:
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1867)
at…

T_Apps
- 73
- 6
5
votes
0 answers
RemoteViewsService not being called from notification
I want to display a GridView inside a notification, I'm using a RemoteViews to display a custom layout. My code looks like:
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState)…

aloj
- 3,194
- 7
- 27
- 38
5
votes
0 answers
Notification using RemoteViews not working
I am trying to issue a customized notification ( which has play-pause, next and previous buttons). But this does NOT seem to work:
What I want : To issue a custom notification with play-pause, next and previous buttons, from my Activity. This…

Deep
- 673
- 1
- 10
- 23