Shown an alert from a non activity
<p>In my app there is a polling task which calls a web service periodically. According to the response of this webservice I need to display an alert dialog with two buttons. </p>

<p>But I'm not able to display the dialog as an alert dialog can be showned only from an activity. Only toasts are able to display. Is there any methods to display the alerts?</p>
