if you are using ListActivity then no need to set the empty view manually. Remove list.setEmptyView(findViewById(android.R.id.empty)); from your code.
ListActivity
list.setEmptyView(findViewById(android.R.id.empty));
Change your layout like below then it's automatically add EmptyView if list has no item:
EmptyView