How to determine the context of current Sub: if the current Sub is called from Service or from Activity ?
I need this information to call MsgBox (if Activity) or Log(if Service).
Are you using many services and activities?[/QUOTE
I use one Actvity and several services, but many class and code modules with Subs being called from Activity and services.