I call Java functions in my Tasker app using the CONTEXT object as startng point. However, this is an instance of android.app.Application and in several cases I would need an instance of android.app.Activity, e.g. to access the android.view.View object associated with my scenes calling findViewById() on the Activity object. Is there a way to access the Activity and get to the View somehow?