Question: 7. Create an inner class in MainActivity called Catimages that extends AsyncTask*String, Integer, Strings to download the cat pictures. The class will need a Bitmap

7. Create an inner class in MainActivity called Catimages that extends AsyncTask*String, Integer, Strings to download the cat pictures. The class will need a Bitmap variable to store the current cat picture. 8. Inside the doinBackground of the AsyncTask, use an infinite loop ( while(true) ( ) to endlessly cycle through cat pictures. You will need to query https://cataas.com/cat?json=true to get your random cat picture. Use the "id" in the JSON payload to check if an image file with that name already exists on the device. If it does, you'll want to set the ImageView to use that local cat
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
