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

Using OrmLite in AppWidget RemoteViewFactory

I need to load data from database in RemoteViewFactory class, I'm using OrmLite. I've this Helper class: public class DatabaseHelper extends OrmLiteSqliteOpenHelper { private static final String DATABASE_NAME = "gfkksa.db"; private static…
0
votes
0 answers

Android Remote Views: Resource not found Exceptions

I am trying my hand at Remote Views in android. So I created 2 apps. A -> Sends a bundle containing RemoteView and a string on an AIDL call. B -> Makes the AIDL call on Button click to fetch the data and immediately launches a activity to display…
yashdosi
  • 1,186
  • 1
  • 18
  • 40
0
votes
1 answer

Putting notification from xml file

I have an xml file defined as follows:
0
votes
1 answer

Get ListView from widget layout

I want to add items from a service in a ListView which is displayed in a widget. But how can I get my ListView in the Service? My widget layout looks like this:
Cilenco
  • 6,951
  • 17
  • 72
  • 152
0
votes
1 answer

Android: DigitalClock in notification foreground service

I'm trying to display a notification with a custom view that got a DigitalClock inside. The service crash on start. Here is my code:
iGio90
  • 3,251
  • 7
  • 30
  • 43
0
votes
1 answer

Generate Custom Class (ImageView Descendant) As Content for Notification (RemoteViews)

I have a custom View that is extending ImageView (called PieView) and since this is one of the allowed views to be included in RemoteViews, this should theoretically work. I am sending a Notification to the device's notification bar using…
Dzhuneyt
  • 8,437
  • 14
  • 64
  • 118
0
votes
2 answers

Android RemoteViews setViewVisibility not working

I'm dealing with a problem in a home screen widget, and trying to disply or hide buttons according to network availability and state, so if connected, buttons will be displayed and content loaded, and if not connected this will hide all content and…
Houssem
  • 2,069
  • 3
  • 27
  • 42
0
votes
3 answers

Android Clickable AppWidget Disable Sound on Click

I have an AppWidget (part of my app). I want there to be no sound when the user clicks a button in the widget. How do I do this?
0
votes
0 answers

Update more widgets from BroadcastReceiver using RemoteViews

I followed these steps: https://stackoverflow.com/a/18236800/824963 to make my broadcastreceiver work. Actually all alarmmanagers are working fine, but each time onReceive is called all widget are updated with the same data public class…
filippo
  • 839
  • 2
  • 13
  • 25
0
votes
1 answer

Android: Create colored TextClock widget

I have been trying to make an Android widget that is simply a TextClock with a user-defined color. However, after a restart of the launcher, the color of the TextClock always reverts to white and does not retain the user-defined color. This is my…
Eric Cochran
  • 8,414
  • 5
  • 50
  • 91
0
votes
1 answer

Create a control for Android AppWidget?

You can see a list of views that are capable of remote views: absolutelayout-framelayout-linearlayout-relativelayout-analogclock-button-imagebutton-iamgeview-textview and other controls. My question is: Is there any way to create a custom view…
hasanghaforian
  • 13,858
  • 11
  • 76
  • 167
0
votes
1 answer

Edit text of widget without being limited by a RemotView

I have a widget that consists of only one textView, and I want to be able to edit the color, size, and font of the textView based on user preference. But it seems the only way to update a widget is by using a RemoteView. This poses two problems…
Dick Lucas
  • 12,289
  • 14
  • 49
  • 76
0
votes
1 answer

android Matrix.setRotate is scaling my bitmap

I am trying to rotate a bitmap in a RemoteViews. However when I use either of the Matrix.setRotate methods or either of the Matrix.postRotate methods the Bitmap gets scaled wierd. Here is the code I am using to accomplish the task. Bitmap bMap =…
dherrin79
  • 367
  • 1
  • 4
  • 13
0
votes
1 answer

Android notification tray does not collapse after clicking ongoing notification

When clicking an ongoing event having remoteview with various butons, the activity loads up in the backgound and the notification tray does not collapse. I am getting this problem only on ICS 4.0. It works fine on 4.1
0
votes
3 answers

setTextViewText not working in IntentService

The code here in onHandleIntent: RemoteViews views = new RemoteViews(getPackageName(), R.layout.mylayout); views.setTextViewText(R.id.txtView1, "some string"); ... Bundle bundle = intent.getExtras(); int id =…
joe
  • 1,125
  • 9
  • 18