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
6
votes
1 answer

Notification for android music player

How to control a music player from buttons in notification, and how to listen button action from the notification
6
votes
3 answers

Android ListView in widget onClick not working

I'm trying to make the listrows in my ListView Widget clickable by using the setOnClickFillInIntent method but whenever I click a ListItem nothing happends. Here are some key parts of my code: Intent i = new Intent(); Bundle extras = new…
6
votes
3 answers

Change numColumns in GridView in Widget (RemoteViews) has no effect

I have a widget(which works) with a GridView, which shows information in 1 or more columns/rows. I want to set the number of columns programmatically, cause the users shall choose. If I set the numColumns inside the Layout-XML to "1", it works…
user1013443
  • 798
  • 1
  • 8
  • 17
6
votes
1 answer

Is it possible to add onclick listeners to remoteviews in android

I have created a notification method as shown below: NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); Notification notification; notification = new…
sharry
  • 370
  • 1
  • 5
  • 15
6
votes
1 answer

Android How to setWeight of a RemoteView?

I need to know the code that allow me to set the Weight of a RemoteView. I tried with this code but this doesn't work: RemoteViews remoteViews = new RemoteViews(c.getPackageName(), R.layout.notification); remoteViews.setInt(R.id.ll_notification,…
Meroelyth
  • 5,310
  • 9
  • 42
  • 52
5
votes
3 answers

Adding TextViews to home screen widget programmatically

I want to programmatically add Text Views controls to my home screen widget. In the following example I populate Linearlayout with TextViews, but how should I use RemoteViews here? It only accepts xml resource layout as a parameter. public class…
kkgery
  • 431
  • 6
  • 13
5
votes
2 answers

How to change 'android:autoStart' attribute of ViewFlipper in RemoteViews programmatically?

I am building an appWidget that has multiple views and flips the views. Basically, it's working. But I have no idea how I can stop view flipping in RemoteViews programmatically. this is xml layout for flipping
juniano
  • 354
  • 4
  • 13
5
votes
1 answer

RemoteView and setGravity

I've got an android widget, that displays a TextView in a FrameLayout. The TextView fills the whole parent layout. What I want to do, it be able to change at runtime where will the text will appear within the TextView. Currently, I'd do it by…
Artiom Chilaru
  • 11,811
  • 4
  • 41
  • 52
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
4 answers

Big Picture is Cropping while setting to Notification

I want to show a Big Picture Style Image in my notification bar Android. But I am getting a problem -> When I set the image in notification bar using the below code: PendingIntent resultPendingIntent = stackBuilder.getPendingIntent(0,…
Gaurav Arora
  • 8,282
  • 21
  • 88
  • 143
5
votes
2 answers

Android Widget with ListView displaying Loading views only

I am trying to implement an Android App Widget with a ListView. I started by following the Google documentation but I got stuck with a list of loading views being displayed instead of the normal list items. Does anybody have experiences with list…
sschmid
  • 1,341
  • 1
  • 16
  • 22
5
votes
2 answers

How to change the image in app widget programmatically in android

I design an android app widget in which two ImageView i want change the image both of the the ImageView when click on the image as well as call a method. Now i use RemoteView like this RemoteViews views1 = new…
Naveen Kumar
  • 3,738
  • 4
  • 29
  • 50
5
votes
1 answer

Android Remote View Notifications

I have an android notification bar which uses a remote view. I have 2 buttons on there to play and pause audio and also an icon to return to the application. I want to be able to click the icon (or anywhere but on the 2 buttons) and return to the…
user706593
  • 51
  • 5
5
votes
1 answer

How to partially update views in an app widget without rebuilding all the RemoteViews

I'm implementing an app widget and I'd like to be able to change the property of a single view in the widget layout, without rebuilding all the RemoteViews from scratch, which involves loading XML etc and which is not necessary in some…
Gianni Costanzi
  • 6,054
  • 11
  • 48
  • 74
1 2
3
22 23