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

Is there any way to use ViewPager's behavior in app widget?

I am writing an app widget for very first time, and came to know that there are too many restrictions on it. I know I can't use ViewPager and any custom view inside an app widget, but I need to use ViewPager's left-right sliding effect. Please have…
0
votes
1 answer

Android App Widget - How To Create TextView Marquee On Two Separate Lines With Adjustable Scrolling Speeds?

I'm trying to create a widget with several different lines on it and want to set it to auto scroll (marquee) and have the ability to adjust the scrolling speed. How can I accomplish this? I tried using a TextView and was able to make it scroll on…
0
votes
0 answers

Android appwidget throwing nullpointerexception

i successfully created appwidget(stackview widget) and i parsed json and showed appwidget but i have nullpointexception.program working but when i close programm and click widget i have exception this is a my code public class BriGeWidgetProvider…
user3345767
  • 349
  • 1
  • 2
  • 11
0
votes
1 answer

Android widget nullpointexception

I am working on JSON.I parsed JSON and i can show my JSON listview(images and texts)and also I successfully created widget and i want to show my JSON's first items's title in my widget.i also wrote this code(if i drop widget then i can to show first…
0
votes
1 answer

Android widget doesn't update automatically

I am working on JSON.I parsed JSON and i can show my JSON listview(images and texts)and also I successfully created widget and i want to show my JSON's first items's title in my widget.i also wrote this code(if i drop widget then i can to show first…
0
votes
0 answers

android download image and show widget's picture

I try to set image from url with remote view. Here is the code that I use. I debugged my code and my String (this: String ab = (MainActivity.itemList.get(0) .get(MainActivity.KEY_image)).toString();) is for example some image's…
0
votes
1 answer

How can I fill an ImageView in an Appwidget while mainiting the aspect ratio?

I have a simple widget containing an ImageView. I'd like to fetch an image from the web and display it in the ImageView while maintaining the aspect ratio. Here's the layout definition for the widget:
0
votes
2 answers

How to call onUpdate of an appwidget from another widget

In my app I have got two different appwidgets. Both show and edit the same value. Both widgets are working fine. My question is: how can I call the onUpdate of the second widget when I edited the value in the first one? Thank you for the answers!
Wurzelbert
  • 51
  • 8
0
votes
1 answer

better way to start a service from a home screen app widget

I have the following code in my sample app. I'm starting a service from an app widget when a button is clicked. The service's job is to play a short audio clip that depends on which button was clicked. The app widget contains two buttons (PREV and…
venta7
  • 169
  • 5
  • 13
0
votes
2 answers

appWidget stops updating/working after some time while phone is locked

My widget stops updating/working after some time. I have a simple widget which displays quotes every few hours (now is set to seconds for testing), for timing it uses a separate thread. What can be wrong? Why does it stop updating? Thanks! package…
Edmond Tamas
  • 3,148
  • 9
  • 44
  • 89
0
votes
1 answer

Multiple, configurable widgets - update issue

When I'm adding single widget I can configure it properly and it's updated as supposed to after initial configuration. But when I add second and next instances of widget with the same or different configuration onUpdate is not triggered. Well, to be…
0
votes
1 answer

Start app widget on app installation in android

I am working on app widget for my app. It is working the way I want, but I don't want that user go to widget picker & drag my app widget to home screen. This is a normal case, here I want to avoid doing this. I want when my app install than my app…
pitu
  • 822
  • 3
  • 11
  • 35
0
votes
0 answers

I am unable to send putextra with intent, from gridview appwidget to Application

Hii I am trying to make a widget with a gridview in it. The gridview Items showing thumbnail of movies. When I click on the Grid Item the particular movie should be open in Application. But when I click on any Item then intent is fired to open same…
Balvinder Singh
  • 580
  • 6
  • 19
0
votes
1 answer

FlowLayout for Android Widgets

Romain Guy created a great presentation and sample implementation for a FlowLayout in Android Activities (which he links to in the answer to this question: How can I do something like a FlowLayout in Android? ) I would love to use something like…
0
votes
1 answer

How to update content (TextView / ImageView) on app widget?

My widget is trivial : 1 ConfigurationActivity to choose between 12 possibilities of picture 1 widget 4x1 which is composed by an ImageView and a TextView with a text When I click on the TextView, it launches my application. When I click on the…
StephaneT
  • 479
  • 5
  • 11