Questions tagged [android-remoteview]
134 questions
1
vote
0 answers
Android RemoteView notificaiton not show again after swipe up
I'm using remote view to make custome notificaiton when phone ringing;
if i dismis notificaiton by swiping left or right it is ok. but if i remove notificaiton using swipe up for next call notificaiton not show.
public void notificationCallRinging(…

anahita zamani
- 11
- 1
1
vote
1 answer
Why RemoteView.setColorStateList() not accessible?
My use-case is to set background for a view inside RemoteView layout.
remoteViews.setInt(R.id.infoRightTitle, "setBackgroundResource", R.drawable.icon)
remoteViews.setColorStateList(R.id.infoRightTitle, "setBackgroundTintList",…

Anmol
- 8,110
- 9
- 38
- 63
1
vote
1 answer
How Do I getText().toString() a TextView Using RemoteViews?
I'm developing a widget for the first time, and remoteviews is a bit confusing compared to building an app.
I understand this part...
RemoteViews views = new Remoteviews(context.getPackageName(),…
user13909115
1
vote
1 answer
Not able to Switch Layout to RTL when arabic text is sent over Push Notification in Android
So i'm trying to send Arabic Text over push notification, i have an image and a textview in a remoteview, when i send the text in english it works perfectly, but if i send it as arabic, then i'm able to receive the text but i'm not able to show it…

Venky
- 1,929
- 3
- 21
- 36
1
vote
1 answer
Android widget - How to remove text strike through from remote view
How to remove text strike through from remote view.
Here is my code, but it is not working --
To add strike through text(working) -
views.setInt(R.id.widgetTitle, "setPaintFlags", Paint.STRIKE_THRU_TEXT_FLAG | Paint.ANTI_ALIAS_FLAG);
To remove…

Arun
- 158
- 3
- 17
1
vote
2 answers
Prevent expanded notification view
I have this code to style my notification:
remoteViews = new RemoteViews(context.getPackageName(), R.layout.notification);
mBuilder = new NotificationCompat.Builder(context);
mBuilder.setSmallIcon(R.drawable.ic_stat_notification);
…

edmond
- 833
- 3
- 13
- 31
1
vote
1 answer
android.app.RemoteServiceException: Bad notification posted from package
I have an app which creates notifications every so often. It is in use by a few hundred thousand users. Typically I have no issues with notifications but this one user is getting the exception I've added below.
All users with this exception have a…

casolorz
- 8,486
- 19
- 93
- 200
1
vote
0 answers
Display notifications on all Android devices consistently
I need to display a notification with text, image and two buttons.
I'm using NotificationCompat from support library and everything works great until I start to test it on different devices.
Here's the same notification on 3 different…

Alexey
- 7,262
- 4
- 48
- 68
1
vote
1 answer
List of RemoteViews supported methods
I have been searching everywhere for a list of supported methods in RemoteViews but come up empty. Can anyone link a resource or list all available methods supported by RemoteViews? Thanks.

Grux
- 584
- 1
- 11
- 20
1
vote
1 answer
Why I'm getting IndexOutOfBoundsException in a RemoteViewsFactory?
I create an appwidget with a listview.
In RemoteViewsFactory class I'm populate list from SQLite database. All is fine, but if I put a one string in updateWidget() method than I get IndexOutOfBoundsException in a getViewAt method of…

Trancer
- 765
- 2
- 8
- 23
1
vote
0 answers
Couldn't Expand RemoteViews - Using Compatible Views, Still Error
I've checked the following question, As seen i understood that i can only use compatible views with RemoteViews, i'm using a Linear and ImageView which are working, every time i trigger the Notification method, i get the " Couldn't expand…

Jaeger
- 1,646
- 8
- 27
- 59
1
vote
0 answers
Couldn't Expand Remote View
I am using remote view to generate a custom notification for media player. But getting this following exception when I called showNotification() method.
android.app.RemoteServiceException: Bad notification posted from package com.sample.acv3:
…

Aman Jain
- 2,975
- 1
- 20
- 35
1
vote
1 answer
Dyanamically adding RemoteViews in custom notification in for loop, issue in setting pendingintent
I am creating a custom notification and adding buttons dynamically using this code:
RemoteViews remoteViews = new RemoteViews(this.getPackageName(), R.layout.custom_notification);
for (int i = 0; i < 100; i++) {
Intent mybuttonsIntent…

Usman
- 2,331
- 2
- 21
- 29
1
vote
1 answer
How to implement viewPager in Notification
I want to know is there a way to implement ViewPager in notification remoteViews or a functionality similar to that.
What i want is scrollable images in remoteViews notification like viewpager. I already tried viewpager but it didnt work

JAAD
- 12,349
- 7
- 36
- 57
1
vote
2 answers
How to disable clicking on ListView item on AppWidget?
I have an AppWidget with a ListView. To populate the ListView I'm using RemoteViewsFactory. In its getViewAt(int position) method which returns a RemoteViews object I fill my row with information.
How can I disable clicking on a ListView item?…

kaolick
- 4,817
- 5
- 42
- 53