Questions tagged [android-remoteview]
134 questions
0
votes
0 answers
Android Remote Service Exception For Status Bar Notification
I use RemoteViews for local notifications. I can't fix it this issue because that's error not come for my code
Please click for device android version
Exception detail;
java.lang.Exception: android.app.RemoteServiceException: Bad notification posted…

Y. Emre CETIN
- 15
- 1
- 6
0
votes
0 answers
Progress isn't being displayed with remoteview notification
Progress bar isn't being displayed with remoteview custom notification. It works if i use the horizontal style one but the circular progress bar isn't displayed.
Can someone help me out with this ?
Main Activity-
import…

Rohit Matthers
- 5
- 7
0
votes
2 answers
How to show icon in the notification text Area in android
I have a simple query , whose answer i do not seem to get from anywhere.
I have a notification like below
NotificationCompat.Builder mBuilder= new NotificationCompat.Builder(baseContext).setLargeIcon(large_icon)
…

Pardeep Kr
- 479
- 2
- 6
- 25
0
votes
1 answer
Playing a gif within an Android widget application
I am working on a project where I have a requirement to play a gif in an Android widget ImageView. For this purpose I have tried all the possible ways by using Glide and libraries like…

Chandru
- 5,954
- 11
- 45
- 85
0
votes
1 answer
How to implement Facebook Like feature using Graph api in Android
I have a requirement to implement Facebook Like feature in my widget application. For that purpose i am trying to implement Facebook LikeView from SDK compile 'com.facebook.android:facebook-android-sdk:4.0.1'. But unfortunately I couldn't use this…

Chandru
- 5,954
- 11
- 45
- 85
0
votes
1 answer
Custom notification with big imageview not display which is load form url in Remoteview android
Hello friends i want to show notification with custom layout and in that there are big imageview also available which load form url below is my code

Harshal Kalavadiya
- 2,412
- 4
- 38
- 71
0
votes
0 answers
RemoteView global variable becomes null when the service class crashes
I am working on a custom notification where I am using RemoteViews for customizing the notification layout. Everything works fine except the problem I am facing when the Service class gets crashes and called again by itself, my global value created…

Chandru
- 5,954
- 11
- 45
- 85
0
votes
1 answer
How to add images dynamically to ViewFlipper which is under RemoteView
I have a requirement to load a list of images into RemoteView's. For that purpose I am using ViewFlipper to show when the user clicks next and previous buttons. But the problem I am facing with ViewFlipper is that I couldn't able to add the images…

Chandru
- 5,954
- 11
- 45
- 85
0
votes
1 answer
bigContentView and ContentView with RemoteViews in push notifications UI not working
I want to have the custom UI for the push notifications. For that I am using RemoteViews.
code for creating notifications :
RemoteViews notificationView = new RemoteViews(context.getPackageName(), R.layout.custom_notification);
RemoteViews…

Awadesh
- 3,530
- 2
- 20
- 32
0
votes
0 answers
Handling buttons on remoteview android notification
I am working on an app which plays music selected from a playlist and the name of the song is shown on this notification. As shown in the screenshot there is a stop button on clicking which the music will stop playing (though at first I tried to…
user5085848
0
votes
1 answer
Set onClickListener on EmptyView in RemoteViews
I make appWidget with listView. For this I need use RemoteViews. And when I init appWidget ListView I set adapter and empty view (when no content):
remoteViews.setEmptyView(R.id.listViewWidget, R.id.empty_view);
But my emptyView contains button,…

Александр Шевчук
- 1,697
- 2
- 19
- 31
0
votes
2 answers
Unable to cancel the notification from the notification tray when different layouts used for expand/collapse
I have a share option in the notification tray. So, I have used 2 custom views in my code.
1. Expandable Notification Layout
2. Normal Notification Layout
The UI is working fine. But, notifications are misbehaving. If I click the first notification…

Sangeetha Pinto
- 1,022
- 3
- 14
- 32
0
votes
1 answer
Transparent notification background in Android
I want to create Android notification with transparent background. I'm using bigContent with remoteViews to create my own layout, but when i set background color of main layout to @android/color/transparent nothing happens. I still see standard…

Michał Kuchtar
- 3
- 1
- 3
0
votes
1 answer
How to add a notification with button?
I am a begginer, In my app I have a notification for image upload progress, I want to add a button with that notification, and I want to cancel the upload service when user clicks on the button. I have used the below code, I have created an xml…

Jack
- 1,825
- 3
- 26
- 43
0
votes
2 answers
Auto resize text in Widget using RemoteView
I have tried to use this example here (AutoResizeTextView) and this example here (FontFitTextView) to resize the text in my widget.
I have a BroadcastReceiver that updates the widget and in this BroadcastReceiver I have the following. I construct…

Dino
- 561
- 3
- 10
- 21