Questions tagged [android-appwidget]

Android App Widgets are custom views that can be placed on the home screen of an Android device.

Android App Widgets are custom views that can be placed on the homescreen of an Android device.

Useful links

992 questions
0
votes
1 answer

appwidget not updating itself

I am working on android appwidget , There are issues updating appwidget periodically . Changed updating period to more than 30 minutes . Still not updating the widget public class MyWidgetProvider extends AppWidgetProvider { final static String…
user2660060
  • 151
  • 1
  • 8
0
votes
1 answer

What is the best way to let an app widget communicate with a service

I want my AppWidget (homescreen widget) to communicate with a Service, when the user presses a Button on it. That Service needs to be permanently running as long as the appWidget lives. As far as I know the only way to react on a widget's onClick…
wodzu
  • 3,004
  • 3
  • 25
  • 41
0
votes
1 answer

Full row clickable in home screen widget

I have built a home screen widget that uses a list view and list items with a relative layout that contains two text views and an image view. What I want is that when you click on an item in the list view the full item should be selected and not as…
Viktor
  • 476
  • 3
  • 16
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
0 answers

Handling app widget when app gets killed

I have an application and a corresponding widget for it. Whenever I kill my application by removing it from background processes and then I use my widget, a pop up telling it has crashed comes. Instead I want, if the app is killed, widget should…
Atihska
  • 4,803
  • 10
  • 56
  • 98
0
votes
1 answer

How do I convert my resource id for image view to ImageView object in android app widgets.

I am trying to display image from changing url in my code to image view. How can I convert my resource id for image view in layout to ImageView object. there is no findViewById in app widgets and RemoteViews has setImageViewResource but it accepts…
Atihska
  • 4,803
  • 10
  • 56
  • 98
0
votes
0 answers

How to use ImageLoader to get images in android app widget

I have an application that shows nearby merchant list. It shows the name and image. Now I have created an app widget for the same, linked to this application. I wanted to use the same ImageLoader class and methods for app widget as I used for this…
Atihska
  • 4,803
  • 10
  • 56
  • 98
0
votes
3 answers

When I try to grab the text from EditText and convert it into an Integer, the application crashes

So I am trying to create a card counting application for blackjack however when I try to set the number of decks that someone is playing with and grab it from the editable editText the program seems to crash. Specifically it says "Unfortunately "My…
0
votes
2 answers

change android volume seek bar Appearance programmatically?

I want to now is it possible to change the android predefined volume seek bar appearance ? if yes how .(the volume seek bar that show changing android device volume ). thank's in advance.
pouyan
  • 3,445
  • 4
  • 26
  • 44
0
votes
1 answer

Widget not updating Views and showing no errors as well

I am developing a widget which is running without any errors but the ImageView of my widget are not updating and also not giving any errors. Thus making me confused about what wrong i am doing. Here is the code:- BroadcastReceiver…
0
votes
1 answer

My widget doesn't seem to want to execute HttpGet from a HttpResponse

Here is my onUpdate code. ComponentName thisWidget = new ComponentName(context, MyWidgetProvider.class); int[] allWidgetIds = appWidgetManager.getAppWidgetIds(thisWidget); final int N = appWidgetIds.length; for (…
0
votes
2 answers

Lifetime of an android app widget

I have an issue/problem with my app widget. I've created an app widget with 6 buttons, i compine these 6 buttons with 6 actions (in the manifest and in the onUpdate() Method). Cause if the user press one of these that i can react to this. But after…
Manu Zi
  • 2,300
  • 6
  • 33
  • 67
0
votes
1 answer

ViewFlipper not working in android app widget

I am trying to add view flipper in app widget. It has to simply flips between 2 images with swipe gestures. But nothing is getting displayed and its crashing. I have the code for the activity so I translated the similar for widget with appropriate…
Atihska
  • 4,803
  • 10
  • 56
  • 98
0
votes
0 answers

TextView getting updated while debugging but not by button

TextView is getting updated when I debug that too for only 2 values and then it stops. If i run the application, then nothing gets printed. Is there something to do with the context?? Please help. Here is my code. //ListViewWidget.java public…
Atihska
  • 4,803
  • 10
  • 56
  • 98
0
votes
3 answers

TextView not getting updated in android app widgets

I am using asynctask to do my feature function and getting the values there. But my text view is not getting updated, though my log statements giving me the result. I am not using custom intent here, just the basic one. Here are my code snippets: …
Atihska
  • 4,803
  • 10
  • 56
  • 98