I created a custom dialog and I\'d like to start a new activity when OK is clicked. How can I get the context to set it as first argument of my Intent constructor?
I
Intent i = new Intent(getBaseContext(), ItemSelection.class);
This worked for me although the structure is different, there is no class for the dialog.