You are taking the reference of Same ListView resource findViewById(R.id.listView1) in both variable listView & lv.
Second thing, why you are taking Cursor Adapter for your list?
Third thing, what's the purpose of DisplayM.main();
Fourth thing, you can finish an activity by writing just finish() then why you are writing it like Listview.this.finish(); ?