I need to start an action when the user selects an item in the warning dialog. How to get the context for going to the intent constructor in the following code ...
builder.setItems(items, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int item) { Intent i = new Intent(<WHAT DO I PUT HERE?>, <new activity>.class); startActivity(i); } });
Is this using an inner class? Any thoughts?
source share