Questions tagged [android-remoteview]

134 questions
1
vote
0 answers

Widget + ListView - how to handle app being stopped

I implemented a Homescreen Widget containing a ListView, just like the CommonsWare sample project. In this sample project the RemoteViewsFactory holds a static final list of the entries to be displayed in the list. This items are always available of…
1
vote
1 answer

Set ImageView source on click with RemoteViews

Is there a way to set an imageview's source on click with remoteviews. I know you can do remoteViews.setImageViewResource(R.id.image, R.drawable.source); but that does not allow me to do it on click. Any help would be appreciated. Thanks.
1
vote
0 answers

android widget loading issue after update

I am working on an android app with a Widget. Everything works fine except for one thing. I debug and code my app on different computers so when I launch the app for the first time i need to reinstall it because of the different debug key. When I…
Brianvdb
  • 666
  • 1
  • 6
  • 16
1
vote
1 answer

Why does android RemoteView class provide only setOnClickPendingIntent

Android's RemoteView class provides the method setOnClickPendingIntent instead of setOnClickListener. What is the reason for this ? What's the advantage of using PendingIntent in this case ?
Bunny Rabbit
  • 8,213
  • 16
  • 66
  • 106
1
vote
1 answer

Android Widget : big image scrollable - out of memory

I try to create a widget on Android, showing a dynamically generated image, bigger than the widget. 1. How I did This can be done with a ListView, and the adapter is a RemoteViewsService where I build my bitmap. Then I create a RemoteViews, and I…
rcperso
  • 490
  • 5
  • 10
1
vote
2 answers

RemoteView.setImageViewResource doesn't show anything

I try to set an Image to an ImageView in my Widget, but instead of picture I got an empty screen here's layout :
Lyubov Alekseeva
  • 209
  • 1
  • 4
  • 10
1
vote
1 answer

Android PedingIntent and setOnClickFillInIntent don't start Activity

In my AppsSerive i load the installed packages with: mApps = mContext.getPackageManager().queryIntentActivities(mainIntent, 0); then i show an icon of the application and the label. I want to start the activity after klick on the icon or label. I…
MG112
  • 55
  • 1
  • 8
1
vote
1 answer

Start Activity from RemoteViewsFactory

i have an app launcher in an appwidget. I would to start Activitys from RemoteViewsFactory. But it didn't work. Here is my Code from the RemoteViewsFactory: @Override public RemoteViews getViewAt(int position) { RemoteViews rv = new…
1
vote
1 answer

Notification remoteview duplicates when startforeground called more than once

In a service I have a main remoteview notRemoteView = new RemoteViews(context.getPackageName(), R.layout.notification_layout); and to that I add another remoteview which contains an ImageButton RemoteViews btnView1 = new…
1
vote
0 answers

Add LinearLayout with dynamic TextViews to RemoteView for widget

I have tried so much to add a linearlayout(xml defined) with some dynamic textviews(runtime) to RemoteView. I defined the linearlayout in my xml layout like: calendarlayout.xml
1
vote
1 answer

Android ListView widgets are sometimes unresponsive to clicks

I've implementing a widget with RemoteViewsService containing with a ListView of items where all the items are clickable to launch a service. In short I'm using setPendingIntentTemplate in my AppWidgetProvider.onUpdate() and setOnClickFillInIntent…
1
vote
0 answers

How to get the index of currently displayed child from RemoteViews if I am using ViewFlipper in AppWidget?

I am writing an app widget and have used ViewFlipper in it. Have a look at following image. I have attached PendingIntent to the left arrow button (top left corner) to navigate through ViewFlipper's childs (the white area). There are 3 childs Today,…
Rupesh
  • 3,415
  • 2
  • 26
  • 30
1
vote
0 answers

How to indicate in UI when service been crashed android

This runs in separate process.I am using remote aidl. i created a method bitmap and displaying image from service to activity. Now when service gets crash, how to display message that service been crashed and disable progress dialog in…
Shadow
  • 6,864
  • 6
  • 44
  • 93
1
vote
1 answer

view.reapply of RemoteView of bigContentView notification crashing

I am attempting to build an app to post notifications to my smartwatch. I found a great notify example application, which I have modified for my testing and it works as expected. I found that the extended information I need to display is in the…
1
vote
1 answer

Widget frozen after HomeScreen restart

I've created widget which can be multiple instantiated with different settings stored in SharedPreferences. After solving initial problem with non-updating widgets directly after Configuration Activity (Multiple, configurable widgets - update issue…
1 2 3
8 9