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
Like Cheezmeister wrote it is not nessesary to get the Actvitiy. You can simply use the context like this:
Intent i = new Intent(getContext(), ItemSelection.class); getContext().startActivity(i);