Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Android Studio - Display 4 Cat Pictures Please implement an android application for displaying random cat pictures from the Cat API. Cat API documentation website

Android Studio - Display 4 Cat Pictures

Please implement an android application for displaying random cat pictures from the Cat API. Cat API documentation website http://thecatapi.com/docs.html. The app's UI should look like the following screen- shots. You are free to modify/enhance the GUI.

Caturday Apps Behavior

Caturday application contains only one activity. User can select to see one random cat picture or four random cat pictures using the radio buttons. When user clicks to get button, your app displays the picture(s).

1. Displaying one cat picture

Use the following Cat API URL to display one cat picture: URL = http://thecatapi.com/api/images/get?size=med

If you are requesting only one cat picture from the Cat API, it sends you image URL. You can use Picasso library to display image from URL.

image text in transcribed

2. Displaying four cats pictures

Use the following Cat API URL to display four cats pictures: URL = http://thecatapi.com/api/images/get?format=xml&results_per_page=4&size=small

If you are requesting more than one cat picture from the Cat API, it sends XML as a response. You can use ION library to get the response from Cat API.

You need to extract the URLs to the cat images. You can process the XML or using XmlToJson library you can convert to JSON object than extract individual cat pictures URLs.

image text in transcribed

CAN SOMEONE SEND ME THE JAVA CODE, XML FILES AND ANYTHING ELSE NEEDED. I need everything to be able to run it on my Android Studio

Androidimulator -Neeus.SXcopy.APU255554 8:31 Caturday O show 1 random cat O show 4 random cats GET Android Emulator-Neus SKcopy APU25.5554 Q 8:32 Caturday O show 1 random cat O show 4 random cats GET Androidimulator -Neeus.SXcopy.APU255554 8:31 Caturday O show 1 random cat O show 4 random cats GET Android Emulator-Neus SKcopy APU25.5554 Q 8:32 Caturday O show 1 random cat O show 4 random cats GET

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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions