Questions tagged [remoteview]

A class specific to Android that describes a view hierarchy that can be displayed in another process. The hierarchy is inflated from a layout resource file, and this class provides some basic operations for modifying the content of the inflated hierarchy.

A RemoteView is a class specific to Android that describes a view hierarchy that can be displayed in another process. The hierarchy is inflated from a layout resource file, and this class provides some basic operations for modifying the content of the inflated hierarchy.

This is specific to Android, this tag should be typed as per the Android Tag Info.

331 questions
2
votes
2 answers

Click on listview item in app widget (remoteviews) not launching activity

I'm trying to create my first app widget and I want to be able to start an activity when an item is clicked, but it's not working. Here is my code in the onUpdate(): Intent toastIntent = new Intent(context,…
2
votes
0 answers

Android Widget ListView Item click not working (Widget Updated via Service)

Please, I'm a bit stuck here. I'm updating my Widgets with a background service( as opposed to using "onUpdate" method) using an AlarmManager for interval repeat . Everything seems to works fine, the ListView populates data, but for some reason…
2
votes
0 answers

A strange Exception about notification: ClassCastException: RemoteViews$SetOnClickPendingIntent cannot be cast to RemoteViews$ReflectionAction

I have encounteredd a problem. I collect a exception message about notification for startForeground. It mainly appears on SamSung GT-I9300, API 15. Is there any clue about it ? Expect your fabulous analysis. Thanks Bad notification for…
Victor Choy
  • 4,006
  • 28
  • 35
2
votes
2 answers

How can I activate text marquee on a TextView?

I want to have a TextView with the marquee effect in my RemoteView I have this layout XML describing the layout of my RemoteView (R.layout.notification_loading_small):
PedroD
  • 5,670
  • 12
  • 46
  • 84
2
votes
0 answers

Android Notification Big Layout Fix

I am trying to build a custom notification for my music player. I Have created h custom layout like google play music and used it in the notification code but I am not getting the expanded view of the notification. Below are my…
Swapnil Gupta
  • 183
  • 1
  • 1
  • 12
2
votes
0 answers

Android RemoteView Notification with 3 Buttons having unexpected behavior

I'm creating a custom notification using RemoteView with three buttons and a Label. When I click on a button it is executing the PendingIntent of another. It is very strange. When I click on 4G button it is executing Close PendingIntent When I click…
2
votes
3 answers

Android. How do I keep a button displayed as PRESSED until the action created by that button is finished? Activated/Selected not usable

I want to keep a ImageButton with a state-list drawable in a "Wait-for-Action-Finished" state as long the action was not done. I've seen the other topics around this problem. But in my case the other solutions are not working for me because: I'm…
Markus Schulz
  • 500
  • 5
  • 12
2
votes
1 answer

RemoteView setLayoutParams - Change ImageView Size Inside HomeScreen Widget

My app shows a widget with a total of 8 buttons. I would like to give the user the possibility to style that widget and customize the size of the ImageViews which are below the buttons. The aim is to leave the Buttons as they are, but to change the…
Barthy
  • 3,151
  • 1
  • 25
  • 42
2
votes
0 answers

Making custom notifications match default style

I'm struggling with creating a custom notification whose expanded view is defined by a RemoteView using a bigContentView. I'd like for this notification to look exactly like a default notification however I'm having issues achieving this across all…
2
votes
1 answer

BitmapFactory.decodeStream and BitmapFactory.decodeFile behaviour with identical image resource

I have a strange behaviour by getting Bitmaps with the methods BitmapFactory.decodeStream(Resources res,int id) and BitmapFactory.decodeFile(String pathName). I want to set a bitmap to my appwidget remoteViews, it is an png image with 319x319px and…
Opiatefuchs
  • 9,800
  • 2
  • 36
  • 49
2
votes
1 answer

Changing Imageviewresource in remoteview notification

I am displaying notification for music player inside service class with buttons and textview. The text is getting updated whenever song changes but I need to change the ImageViewResource on click of play button it should change to pause once music…
Siju
  • 2,585
  • 4
  • 29
  • 53
2
votes
5 answers

Custom Notification is not displaying in Android

Hello I am display custom notification in my android application. But issue is that custom notification is not displaying. I saw many threads but did not find any answer related to my issue. I could not find where is the issue. Can you please look…
N Sharma
  • 33,489
  • 95
  • 256
  • 444
2
votes
3 answers

Android's Expanded Notifications - Both Standard ContentView and custom BigContentView after expansion

I've made a custom RemoteView in JellyBean, as described here, and set it as the bigContentView of a notification. notification.bigContentView = customNotifView; I'm trying to have the custom layout placed below the standard contentView after the…
2
votes
1 answer

Get ListView from a Layout Using RemoteViews

I am working on a java based Google Glass service and wanted to add a listview fro some objects but unable to get and work with ListView using RemoteViews. So is there anyway i could add list in the card using remote views?
user2043155
2
votes
1 answer

Universal Image Loader inside RemoteViewsFactory for Android widget

I would like to publish a solution to a problem. Hopefully it will help other people facing the same problem. This is related to the Android Universal Image Loader library available here Original question was : I started today to use your Android…
azerto00
  • 1,001
  • 6
  • 18