ListView 15
Add a ListView control to the Main Layout.
The following method would generate sample data.
Now in Activity1, we would get the ListView control and set the data by using following code.
Let’s run the application. Oops, the entity class name is displayed instead of data. That means we