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
0 answers

aChart homescreen widget

I've been trying to get a simple homescreen widget created using aChartEngine as the graphing library, but I can't seem to get the chart to render at all. There doesn't seem to be any error messages either so I'm not sure if I'm doing something…
daitienshi
  • 181
  • 1
  • 3
  • 11
0
votes
1 answer

Android Widget with service (started using alarm) getting called frequently

In one requirement I have created one widget that should be updated after every 5 minutes. I found on internet that instead of using java thread I should use AlarmManager that will save the battery. Now I am doing it using AlarmManager. The problem…
MCA Shah
  • 405
  • 1
  • 4
  • 10
0
votes
1 answer

Widget Doesn't Stay

Ive made a widget that once placed on the homescreen launches an activity So I Have: public class WidgetActivity extends AppWidgetProvider { public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgets) { …
0
votes
1 answer

skinnable widget android

I have made a working clock widget app in android but would like it so that the user could change just the clock face by clicking on it and going to a settings page. Is there a simple way of doing this? I am fairly new to programming for android.
0
votes
1 answer

AnimationDrawable in an AppWidget

I've been trying to add an AnimationDrawable in one of my app widgets. I create an xml resource file looking like this. It displays images of a led with the light on and off (so the animation is a blinking led).
XGouchet
  • 10,002
  • 10
  • 48
  • 83
0
votes
1 answer

AppWidget with SharedPreferences has to update twice

I'm building a Widget which displays a textview which is editable as a edittext in a configuration class. And I just implemented sharedpreferences, so when the user would edit the widget for the second or third time etc. the already inputted text…
Jakob Harteg
  • 9,587
  • 15
  • 56
  • 78
0
votes
2 answers

Ambiguity updating multiple AppWidgets

I have multiple widgets. On update for each i start a service Code in service: for (int widgetId : allWidgetIds) { // Register an onClickListener for DisplayActivity Intent clickIntentUpdate1 = new Intent( …
harshit
  • 3,788
  • 3
  • 31
  • 54
0
votes
1 answer

Android - Launch Widget from Activity

So, the widget is already added on the screen, I'm wondering if there is a way to go/launch the widget from an activity? Thanks.
lorraine batol
  • 6,001
  • 16
  • 55
  • 114
0
votes
1 answer

Intent to launch video does not complete on Nexus 7 / Android 4.1.1

I have an appwidget that launches a video. It works on all my older devices and even my 4.1 emulator, but does not work on my target device with is the Nexus 7. On the older devices, including an S2, when you tap the widget the video plays. On…
vanstrien
  • 33
  • 1
  • 3
0
votes
2 answers

How to update widget from another application?

I have made an application and a widget. I have to update my widget from the application i.e. send some data to the widget. I used the sendBroadcast(Intent intent) method from the application. It is well received in the onReceive(Context context,…
Feona
  • 295
  • 2
  • 6
  • 18
0
votes
3 answers

Home screen widget does not show up in android

In my application, I have a Fragment which is attached to the main activity. This Fragment displays data with the help of an adapter. In the adapter, I have inflated a layout which has a clickable text "Watch From Home". The adapter displays data…
Feona
  • 295
  • 2
  • 6
  • 18
0
votes
1 answer

Does widget ID remain the same forever for a specific widget instance, even after reboot?

I'm developing an AppWidget which uses a configuration activity to let you customize the widget behaviour. The customization must be stored somewhere and my first idea was to use shared preferences: when the configuration activity finishes, it…
Gianni Costanzi
  • 6,054
  • 11
  • 48
  • 74
0
votes
2 answers

How to set time to Android AnalogClock in app widget?

How to set custom time to Android AnalogClock placed in app widget? As an alternative I was thinking to override default AnalogClock to set the time through codes. Or in other words, I would create my custom Clock which extends from default View or…
stuckedunderflow
  • 3,551
  • 8
  • 46
  • 63
0
votes
2 answers

How to add X number of TextViews to my widget dynamically?

I've searched and searched and for whatever reason I just can't seem to get it working. What I'm doing currently is that I have a config class in which I, based on selected items on spinners, want to create x amount of TextViews which I want to set…
0
votes
1 answer

AppWidgets - Updating Intent extras contents dynamically

I have an AppWidget that interacts with two Activities. First Activity asks user to type in some text. Here's the code to start this Activity from AppWidget: Intent promptIntent = new Intent(context, …
Egor
  • 39,695
  • 10
  • 113
  • 130