android determine if activity context or application context
<p>I have an <strong>async task</strong> that makes an upload and shows a <strong>progress dialog</strong>. I would like to be able to not show the dialog if it is being called by a service and thus can't show a dialog. The problem is there a way to <strong>determine which type of context</strong> i have(an activity or an application) ?</p>
