Android Widget not responding

I have an issue I can't seem to figure out... I have a widget for my app that I'm using with a configure option to control what/how the widget launches the app. When the user adds the widget, it shows a listview of options allowing the user to select a part of the app to have the widget navigate/launch. Once the user makes a selection, it changes the textview on the widget to the selected option. Now... Problem is once I push the changes to the appWidgetManager to reflect the textview change, the widget no longer responds to presses. So basically, my widgets only work if I don't use any configure option. Any ideas?

// Tell the widget manager
appWidgetManager.updateAppWidget(appWidgetId, views);

Answers


On every update you have to set the OnClick intents again

views.setOnClickPendingIntent(R.id.bButton1, pendingIntent);

Just guessing. Your description is a bit vague. If my suggestion doesn't help, post the code how you create and push the update.


Need Your Help

What is the difference between smart class parameters and smart variables

puppet theforeman

In puppet foreman UI, there is smart class parameters and smart variables. Smart class parameters comes up with override feature where as smart variables not; So i am wondering whether we can say ...

Unable to insert row in table in SQLite

iphone sqlite

I have two classes A and B using SQLite database.Class A is using TableA and classB is using tableB. I'm able to insert data in class A but not in class B. However, select query is working properly...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.