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

Modify background drawable of remote layout in Android

I have a widget layout with a drawable background: @drawable/basic_widget_style_2 is a layer-list of…
prgDevelop
  • 1,557
  • 2
  • 15
  • 26
0
votes
1 answer

Set contact thumbnail to widget imageview

I was trying to set my widget's image view with contact's thumbnail. I was trying with activity's image view and I was able to get the thumbnail but when I tried to get the same with setImageViewUri in RemoteViews,its not updating my widget's image…
Jey
  • 93
  • 1
  • 8
0
votes
1 answer

android update widget appearance

I want to change one of the visual elements of an android widget when the user clicks it. This is in the widget's xml
CQM
  • 42,592
  • 75
  • 224
  • 366
0
votes
1 answer

Rotated images in remoteviews

I'm making a battery widget, and to avoid having 20 separate PNG files for the different levels I've got one PNG which I rotate to 20 positions. On Android 3.x+ this is easy, as the ImageView element as a rotate property. For backwards compatibility…
Nick
  • 6,900
  • 5
  • 45
  • 66
0
votes
0 answers

Android widget doesn't respond to clicks until after RemoteView updates

I have an android app widget that gets some information from the internet when it is first launched. More precisely it launches a service that asynchronously does a network call. At the end of that network call, in the UI thread it updates the…
CQM
  • 42,592
  • 75
  • 224
  • 366
0
votes
2 answers

How do I get an image from an sdcard to show up on a widget imageview?

I am trying to make it so that the widget shows an image saved onto the sdcard. so far i have found this: String imageInSD = String.format("/sdcard/facepalm%d.jpeg", counter%10); Bitmap bitmap =…
0
votes
2 answers

How to connect a Windows CE Ethernet device on ActiveSync Remote Display on Windows 7?

I have a device connected to my Windows 7 desktop pc via an Ethernet cable. My aim is to remotely view the device and control it from my pc. I have had this running on an XP computer but not on a Windows 7 machine. I have researched online to…
bigbaz34
  • 385
  • 2
  • 8
  • 27
-1
votes
1 answer

Replace RemoteViewsFactory on receiving a broadcast in widget provider

I have an app with a widget showing a listview. I want to update the list based on the recipe that user opens in the app. To do that first I send a broadcast with an extra integer when activity is open. Then in widget provider I am setting remote…
MarcinBLN
  • 39
  • 4
-1
votes
1 answer

How to use SimpleDateFormat in Widget RemoteViewsFactory class?

I need to format date and time in the RemoteViewsFactory class. I know how to use DateFormat/SimpleDate Format. I'm doing it like in the thread below but the app keeps stopping when pressing on the widget on a physical device: …
LeadBox4
  • 83
  • 2
  • 11
-1
votes
1 answer

setImageViewResource in Remote Views object pass an image using glide

I am making a Widget and in the Widget service in the getViewAt method i have set corrently the text to my widget but it is complicated to pass my images from my object. @Override public RemoteViews getViewAt(int position) { RemoteViews…
-1
votes
1 answer

Android App Widget - How fill a ListView in an Objcet that is in a Listview

I need a widget that shows a listview. And in this listview i need other listviews with string items. How can i implement this? Should look like the google keep…
-2
votes
1 answer

Why there is not support for custom views in widgets?

I don't understand why google decided to not implement support for custom views or even support for the ones bundled in the support library when designing widgets, and instead it decided to rely on RemoteViews Widgets are such a big part of users…
ci0ccarellia
  • 795
  • 9
  • 26
-2
votes
1 answer

how can i access laptop through mobile without using any internet connection

I wanted to access my laptop using my android mobile. I have already accessed using Team Viewer. But it require a Internet connection. I want to access my laptop on my android mobile. Is there any way to connect.
Manoj Kumar
  • 477
  • 2
  • 8
  • 24
-2
votes
2 answers

remoteViews.setOnClickPendingIntent(R.id.widget, pendingIntent);

I bought the shittiest book "EVER" to learn android programming. It's the : Android App Development For Dummies, 3rd Edition I assure you, it's not for "dummies"! My question is: (This is a part of a widget…
user4938227
  • 588
  • 1
  • 5
  • 10
-2
votes
1 answer

Android-How to make Notification(RemoteViews) support EditText?

Is there a simple way? or can I achieve this by adding a customized EditText in Android SDK?
iclinux
  • 492
  • 2
  • 17
1 2 3
22
23