I would like to pop-up an error from the appwidget when one of its background tasks fails, but I don’t think that is permissible — or if it works, that it is safe.
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.
AFAIK, as long as you have a reference to a valid Context object, it is safe to create a Toast.
However, in your case, I think you might be better off using the Notification Bar’s API.
http://developer.android.com/reference/android/app/Notification.html
It would probably give your users a better experience to not have your app interrupt their screen space to tell them your app didn’t do what it was supposed to. To the average user, that’s two reasons to uninstall that they suddenly have.