For a Dialog
you have to use Activity's instance
not application context
.
Try this
private AdapterView.OnItemClickListener onListClick=new AdapterView.OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view, int position, long id)
{
Dialog dialog1 = new Dialog(View_List_Of_Reports.this);
dialog1.setContentView(R.layout.view_dialog1);
dialog1.show();
}
};