I have a List<Service>
received from getParcelableArrayListExtra()
Now I need to populate the received objects into a android ListView
I have try to populate the ListView in the following way. The ListView is populated to show the Object reference ids. Instead of showing contants.
How do i show the contents in this list.
The implementation is as follow :
List<Service> serviceCart = getIntent().getParcelableArrayListExtra("serviceCart");
ListView listView = (ListView) findViewById(R.id.lv_choosed_services);
ArrayAdapter<Service> serviceArrayAdapter = new ArrayAdapter<Service>(this,android.R.layout.simple_list_item_1,serviceCart);
listView.setAdapter(serviceArrayAdapter);