I’m working on a app with a widget which I want to update on a regular basis. I’ve set android:updatePeriodMillis=”3600000″ but my ListView doesn’t update. What is it that I’m missing?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Can you please check if your onUpdate(…) function getting call or not. If onUpdate() is getting called after update period, you need to call
notifyAppWidgetViewDataChanged()for ListView’s adapter; in-order to update it.