Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions