here is my code for ArrayAdapter. When i click on LinearLayout "cat" it gives error on dialog.show(). I don't know how to create custom dialog within ArrayAdapter class. Everything work fine when i remove creating dialog part. here is my code for ArrayAdapter. When i cl