How to implement more than one event for Android/Java

view full story

http://stackoverflow.com – I have an class lets say Downloader in which i want to have multiple events let's say OnCompleted , ReportProgress and OnCancle. I want to know how I can add these event to my class. I am new to Android/Java. Please give me the sample code if possible. Thanks in advance (HowTos)