how can it got access to the current activityobject from library ? public text (BA bpa,...){ bpa.activity is here always null ??? } i need this for context to work for dialog creation progressdialog ...