I am getting null pointer exception,
due to failed to recognize layout parameter in the custom alert dialog.
So, If any one know this please help me…?
Thanks in advance…!
builder = new AlertDialog.Builder(this);
builder.setView(getLayoutInflater().inflate(R.layout.custom_dialog, null));
//AlertDialog dialog = new AlertDialog.Builder(this).create();
//dialog.setContentView(R.layout.custom_dialog);
dialog = builder.create();
customDialogList = (ListView) dialog.findViewById(R.id.custom_list);
customDialogList.setAdapter(customDialogAdapter); // here null pointer exception
dialog.setCancelable(true);
dialog.show();
try this.