android-appwidget
AppWidget PendingIntent not working after Launcher restart
I have an AppWidget with 2 pending intents. They work most of the time, but after a while they stop responding. Only thing I have been able to pinpoint is that they are crippled after a Launcher resta[详细]
2023-02-09 06:50 分类:问答What the difference to update Android App Widget between two approach?
I read some example in internet/book about the App Widget, a normal example to update the widget is in onUpdate(Context context, AppWidgetManager appWidgetManager,int[] appWidgetIds) method of AppWidg[详细]
2023-02-06 03:58 分类:问答Android: notification when the user opens SMS app or phone app/missed calls list
I want my AppWidgetProvider (which is a direct subclass of BroadcastReceiver) to be notified when the user reads a previously unread sms or when he opens the list of missed calls. So far I gound out t[详细]
2023-02-05 13:05 分类:问答How to find view id in appwidgetprovider?
I have a appwidget extends from appwidgetprovider. I have created a layo开发者_运维知识库ut xml file named main_layout.xml and add a button. If i develop a listActivity i reach this button with this[详细]
2023-02-04 19:20 分类:问答how to programmatically create/populate the view of a appwidget in android
Say I have a framelayout as the view of a appwidget. The framelayout have several children to form a layered structure. Depending on the application logic, the children in the framelayout can be remov[详细]
2023-02-03 19:35 分类:问答Removing AppWidgets programmatically
I\'m having the hardest time figuring out how to remove home screen AppWidget\'s programmatically (i.e. without the user actually dragging one into the trash). As an example, consider an app that can[详细]
2023-02-01 18:45 分类:问答Updating extras in an intent in app Widget in Android
My code: @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {[详细]
2023-01-30 22:14 分类:问答App Widget update TextView
I have been following a tutorial to make Android App Widgets, and I was having a little trouble. The tutorial led me to create this code:[详细]
2023-01-29 12:32 分类:问答App Widget onUpdate not called when onReceive method exists
I have the following code in my AppWidgetProvider class. @Override public void onUpdate(Context context, AppWidgetM开发者_运维问答anager appWidgetManager, int[] appWidgetIds) {[详细]
2023-01-29 06:25 分类:问答Why doesn't my app widget update in API 3 or 4?
I\'m working on an android widget and it works great in API Level 5 or greater.It\'s not supported at all in API Level 1 or 2.It should work absolutely fine in 3 and 4 but for some reason the widget d[详细]
2023-01-28 00:42 分类:问答