Question: I am having issues with an assignment. The below two steps have me stumped. 1. When doInBackground finishes the onPostExecute method is called, passing the
I am having issues with an assignment. The below two steps have me stumped.
1. When doInBackground finishes the onPostExecute method is called, passing the list as a parameter.
2. Finally, the onPostExecute method creates and sets a listAdapter for the listView, passing in the result list.
Here is my onPostExecute class:
@Override protected void onPostExecute(List result) { // Create a ListAdapter from the JSON List data setListAdapter(new ArrayAdapter(ItemFragment.this, R.layout.activity_main, result)); I am not able to correctly call the R.layout portion of this code. I keep geting an error, "cannot resolve constructor 'ArrayAdapted(edu.ucdenver.contactlistultimate.ItemFragment, int, java.util.List)'
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
