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

Updating Text View with a list of values in android app widget

I have an app widget that does some stuff in AsyncTask's doInBackground() method and the final steps are to get the list of store names, that looks like this: Store storeObject=store.getStores().getItems().get(0).getStore(); String name=…
Atihska
  • 4,803
  • 10
  • 56
  • 98
0
votes
1 answer

Android Widget Failing To Update

I'm making a widget and i know some of my code such as the broadcastReceiver is wrong at the moment but it wont even update to hardcoded setTextViewText. My problem is I've no idea why this happens and my widget just wont update. Here's my code i…
Timmo
  • 2,266
  • 4
  • 34
  • 54
0
votes
1 answer

Android Lock Screen App Widget: how to wake up the device (and send it back to sleep again after)

Hi and thanks for your help. I have the following situation. I have a Lock Screen Widget, when the user taps it the App Widget perform some tasks (updates itself). The point is that: if the phone is in sleep mode and the user taps the App Widget,…
Lisa Anne
  • 4,482
  • 17
  • 83
  • 157
0
votes
1 answer

Android: can I put 2 Pendingintents on the same view?

I have an App Widget. In the App Widget I try to set 2 Pendingintests on the same Viev: //FIRST PENDINGINTENT Intent i1 = new Intent(getApplicationContext(), AppWidget.class); …
Lisa Anne
  • 4,482
  • 17
  • 83
  • 157
0
votes
1 answer

Static Android homescreen widget

I´ve developed an android application with it´s own widget. To bring the widget in the right form, I set minWidth to 300dp and minHeight to 400 dp. When placing it to the homescreen, it has the right dimensions, but anyway, it´s possible to resize…
Marian Klühspies
  • 15,824
  • 16
  • 93
  • 136
0
votes
2 answers

Android: how to set custom font in App Widget?

Hi and thanks for your help. I need to use my custom font in my App Widget. Normally I would use something like: TextView txt = (TextView) findViewById(R.id.custom_font); Typeface font = Typeface.createFromAsset(getAssets(), "myfont.ttf"); …
Lisa Anne
  • 4,482
  • 17
  • 83
  • 157
0
votes
1 answer

Android AppWidget Battery-Status

I'm looking for make an AppWidget that check the battery status (level, charging/not charging). I wrote a lot of codelines, but, even if it work perfectly, I see that put it on the screen make the telephone slower and, sometimes crash. I think it's…
0
votes
0 answers

Widget is not appearing in widget laucher section

I have created a widget from scratch, and it works, but it doesn't appear in the widget section of Android 4.0+ launchers. What must I change to ensure the widget appears in that launcher section?
Pdroid
  • 867
  • 9
  • 13
0
votes
1 answer

Update app widget layout dynamically

I'm working on a voip/sip based application which is capable of making calls from a dialpad widget which has the four buttons at the bottom
Aalok Sharma
  • 1,025
  • 2
  • 12
  • 26
0
votes
1 answer

Android App Widget Vertical Swipe: accuweather.com

On my Samsung S3 I have the accuweather.com APP WIDGET installed: when having multiple locations, you can get to the next location with vertical swipe. It also seams that they built in a crossfade animation for that action. My questions are: 1) What…
0
votes
1 answer

do not call updateAppWidget at widget screen adding (at first time)

When my application starts, I call activity with listview and first item to it. my widget adds new one item to the listView in the onUpdate(): public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { …
Rikki Tikki Tavi
  • 3,089
  • 5
  • 43
  • 81
0
votes
1 answer

Maintaining a variable across appWidget restarts?

I have an android Activity extending AppWidgetProvider in which I'd like to keep a count of how many times onReceive() is called. The problem is, every once in a while there is an entry in Logcat saying "No longer want blah.foo.bar.baz" and shortly…
wufoo
  • 13,571
  • 12
  • 53
  • 78
0
votes
3 answers

setTextViewText not working in IntentService

The code here in onHandleIntent: RemoteViews views = new RemoteViews(getPackageName(), R.layout.mylayout); views.setTextViewText(R.id.txtView1, "some string"); ... Bundle bundle = intent.getExtras(); int id =…
joe
  • 1,125
  • 9
  • 18
0
votes
2 answers

Android battery level widget

I'm working on android widget that displays the level of battery left. It seem to work on the emulator except that the emulator's battery level doesn't move, so I can't test further. On real device (ICS), it only displays the initial…
awonderer
  • 665
  • 9
  • 26
0
votes
1 answer

Programme a Toggle button to Set Widget update time

@Override public void onClick(View arg0) { // TODO Auto-generated method stub if(Tb.isChecked()){ android.appwidget.AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals("120000"); }else{ …
AACaN
  • 90
  • 2
  • 8