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
4
votes
4 answers

How to make a scrollable app widget?

As far as I have read in the Internet and official documentation, it isn't possible to make a scrollable app widget. Also all my tries failed. I even tried to subclass TextView to implement my own scroll method, but nothing worked. Are there any…
anon
4
votes
0 answers

android AppWidget not adding to homescreen on Lollipop

I developed an app that shows news feed on a home screen widget. Everything is OK on pre-Lollipop android devices as a result of the following scenario: A user enters their launchers' widget screen to choose/add a specific widget A user clicks on…
user1365685
4
votes
4 answers

How to change the ProgressBar color in a widget?

Is there any way to change the color of the ProgressBar residing in the app widget at runtime? This is how the ProgressBar progress value is updated: RemoteViews views = new RemoteViews( context.getPackageName(), R.layout.widget…
davee44
  • 357
  • 3
  • 10
4
votes
0 answers

Application is not shown in Recent Apps list when opened via PendingIntent

My app offers a widget. User can add the widget to the home screen of his Android OS. When the user taps the widget my app gets opened. The issue is: when run so, the app is not shown in the Recent Apps list. How can I make my app to shown in the…
Bobrovsky
  • 13,789
  • 19
  • 80
  • 130
4
votes
2 answers

Get the currently active widget

I have got all the widget app list.My problem is that I am not able to know that which widget is currently active in the phone. I am getting the list of widget apps by this code, AppWidgetManager manager1=AppWidgetManager.getInstance(ctx); …
4
votes
1 answer

Simulate low memory on real android device

I have a problem with app widgets on Android KitKat 4.4.2, which is the OS removes my background running service without restarting it, although it's in sticky mode. Now I found a trick to use onTaskRemoved to restart my service in case of low…
AVEbrahimi
  • 17,993
  • 23
  • 107
  • 210
4
votes
1 answer

How to allow only a single instance of a widget android

I want to allow the addition of a single widget, I tried to put a boolean flag and i have: Inside WidgetConfig: public final static String ADDED_KEY = "IsAdded"; public static boolean isAdded = false; onCreate (inside WidgetConfig) isAdded =…
user1719863
  • 787
  • 1
  • 8
  • 13
4
votes
1 answer

Android;Force AppWidget to work from SD Card?

Is there any way to force AppWidget to work even App is moved to the SD Card and SD Card is not unmounted? Docs say: ... you should not allow your application to be installed on the external storage if it uses any of the following features, due to…
hasanghaforian
  • 13,858
  • 11
  • 76
  • 167
4
votes
1 answer

Android appwidget remoteviews not updating

List remote view is not updating (I mean refreshing itself) when I am updating the widget from some activity. It comes up till onUpdate of app widget (log showing up). but does not enter into adaptor of list view to inflate it with fresh data…
user2660060
  • 151
  • 1
  • 8
4
votes
1 answer

makescaleupanimation from appwidget

Some appwidgets are using the makeScaleUpAnimation (introduced in JellyBean 4.1) when starting an activity from the widget. How is this possible when you can't reach the view from your widget provider? Is there any way to get the whole appwidgets…
4
votes
2 answers

What is the purpose of a receiver for APPWIDGET_UPDATE

I'm working on an Android app written by someone no longer with the company, and not understanding what the purpose is of creating a receiver for AppWidget updates. The manifest has the main activity which runs when the app is launched. As far as I…
4
votes
1 answer

Handling multiple instances of appwidget

I have a configuration activity, a large widget provider and a small widget provider. From configuration activity i save some values in shared preferences. From large and small app widget providers i get those shared preferences. I am not able to…
Prativa
  • 364
  • 6
  • 25
4
votes
2 answers

onReceive not called when removing Widgets on Lock Screen - Nexus 7

I want to enable my widget on the lock screen on Jelly Bean (Nexus 7, Android 4.2.1) My problem is that onReceive() is never called when you remove a widget from the lock screen, creating as many ghost widgets as you add/remove it. It works ok in…
4
votes
0 answers

How to get list of widgets & shortcuts of homescreen in android

How to get list of widgets & shortcuts of homescreen in android. Here is my code: List infos = mAppWidgetManager.getInstalledProviders(); for (int i = 0; i < infos.size(); i++) { int ids[] =…
4
votes
2 answers

Exported Activity Permission for AppWidget Configuration Activity

I'm getting this warning for my AppWidget's configuration activity in the manifest file after I added the android:exported="true" tag. This is what it looks like...
Brian
  • 7,955
  • 16
  • 66
  • 107