I\'ve created some composie UIs in my android apps and there are some ListView controls -among other controls- inside a view. Because of this, I have used \"Activity\" as my
The easiest way to achieve this was using a ListFragment instead of a ListActivity. ListFragment has the following convenience method:
setEmptyText("My no items message...");
Besides, using a ListFragment class has other advantages. For example, the possibility to combine it with the new AppCompat library (which you cannot do with ListActivity because you have to extend from ActionBarActivity).