In you cenario you still should use Notifications. Otherwise users will be bothered with anoying alertdialogs. While with notifications, they can choose when to view the message. Which is fully in compliance with the Desing philosophy.paolo wrote:My scenario is: I started the service through the activity, I continue to use the phone and the service show me an alertdialogs. Is this possible? How bond as a service to an activity?
I repeat: you should __NEVER__ open dialogs or windows of anykind from a Service. Use notifications and PendingIntents for this!modha_chintan wrote:Hi experts,
I am stuck up with exact same problem, I also want to launch alert dialog box from service at some point of time when task is done. But the thing is my service runs independent of activity (it is not binded to any activity) thats's how i want my service to be running background , I tried creating new thread and tried to launch alertdialogbox through it but wasn't successful.
any help or suggestion would be greatly appreciated.
thanks in advance
Yeah very true, though I thought it didn't go for semi professional developers .EveningNewbs wrote:PS, The best way to make sure someone does something is to tell them that they shouldn't.
Users browsing this forum: MSNbot Media and 13 guests