5COSC023W MOBILE APPLICATION DEVELOPMENT – Assignment 2

$ 10.00

5COSC023W MOBILE APPLICATION DEVELOPMENT – Assignment 2

You are required to implement an Android application using Kotlin described by the specifica-
tions below.

You are not allowed to use third-party libraries. The only libraries that you can
use are the standard Android API libraries found in the following URL:
https://developer.android.com/reference/
It is important to follow exactly the specifications and your implementation must
conform to these:
The application developed will be helping users with meal preparation.
The application will be using the https://www.themealdb.com/api.php/ Web service and
the Room Library to save information about meals.
1. When the application starts, it presents the user with 3 buttons labelled Add Meals to DB,
Search for Meals By Ingredient and Search for Meals. (2 marks)
2. Clicking on the Add Meals to DB button saves all the details of a few meals in an SQLite
database local to the mobile device using the Room library. The specific information of
the meals which will be saved is shown in the following link and the information saved
could simply be hardcoded in the application.
https://dracopd.users.ecs.westminster.ac.uk/DOCUM/courses/5cosc023w/meals.txt
An appropriate database with appropriate tables should be created and populated by your
application, based on the above data.
(20 marks — 10 marks for the creation of the database and 10 marks for its population)
3. The application is using the following Web service:
https://www.themealdb.com/api.php/
The documentation of how to use the Web service is in the above web page. For example,
the following request (type this in your web browser):

Description

5COSC023W MOBILE APPLICATION DEVELOPMENT – Assignment 2

You are required to implement an Android application using Kotlin described by the specifica-
tions below.

You are not allowed to use third-party libraries. The only libraries that you can
use are the standard Android API libraries found in the following URL:
https://developer.android.com/reference/
It is important to follow exactly the specifications and your implementation must
conform to these:
The application developed will be helping users with meal preparation.
The application will be using the https://www.themealdb.com/api.php/ Web service and
the Room Library to save information about meals.
1. When the application starts, it presents the user with 3 buttons labelled Add Meals to DB,
Search for Meals By Ingredient and Search for Meals. (2 marks)
2. Clicking on the Add Meals to DB button saves all the details of a few meals in an SQLite
database local to the mobile device using the Room library. The specific information of
the meals which will be saved is shown in the following link and the information saved
could simply be hardcoded in the application.
https://dracopd.users.ecs.westminster.ac.uk/DOCUM/courses/5cosc023w/meals.txt
An appropriate database with appropriate tables should be created and populated by your
application, based on the above data.
(20 marks — 10 marks for the creation of the database and 10 marks for its population)
3. The application is using the following Web service:
https://www.themealdb.com/api.php/
The documentation of how to use the Web service is in the above web page. For example,
the following request (type this in your web browser):