I have an Android Activity that uses a class that I developed that extends a View (let's call it FooView). I'd like to launch a dialog box when a particular event happens in FooView. It seems from all I've read that the dialog box must be launched from the Activity class using showDialog(). I can't seem to find any example showing how to launch a dialog from a View.
So I'm wondering how this can be accomplished. Do I need to send an Intent from FooView to the Activity? Or register a callback from the Activity that is called by FooView?
Thanks in advance.