I have an async task that makes an upload and shows a progress dialog. 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 determine which type of context i have(an activity or an application) ?
Share
1 Answer