Information Technology Bait2073 Mobile Application Development
Information Technology Bait2073 Mobile Application Development
DECEMBER EXAMINATION
Signature: yif
Date:21/12/2021
Total
2
BAIT2073 MOBILE APPLICATION DEVELOPMENT
Question 1
ANSWER MARKS
Share Preference
The user's email can be stored through Share Preference, because Share
Preference is used to store a small collection of key values. Shared privately or
publicly. For example, when users register for an iPasar application account, they
need to register with their email and password to log in. Therefore, we can use
Share Preference to store 1 user account by 1 email and 1 password, so each user
will have their own unique account. In addition, the data remains the same
throughout the session, so when the user exits the application and logs in again
next time, the system will automatically fill in the input fields so that the user can
log in to the system very quickly.
Data Files
Images of all live animals, plants, and fresh food sold in the iPasar app can be
stored using data files. This is because the data file can read and write large
amounts of data sequentially from beginning to end without skipping. It can store
text, video, image, etc. For example, when we open the iPasar app, we can see
many recommended products' pictures on the screen. Users are able to view these
images to find what they want and decide which one to buy among the different
sellers, because some products are more attractive and prominent in design. In
addition, data files can also be used to store user receipts. For example, various
receipt information such as the total amount to be paid, the amount of changes,
and the amount paid can be stored in a PDF file and sent to the user after the user
completes the purchase. As a result, the users can download their receipt on the
phone to view their payment details.
Database
We can use the database to store records of reserves or purchases of products.
One type of database is called SQLite. This is recommended because the
purchase history or purchase record involves many different data, such as product
name, seller name, etc. All these types of data are repeated for each user, which
means that each user stores the same type of data, such as the number of
purchases, the name of the item paid for each time, etc. Therefore, using a SQLite
database can help users store data in a structured format. For example, the user's
first purchase on December 21, 2021 will be stored at the top, and subsequent
purchase history records (December 22, 2022 and after) will be stored in
sequence. Therefore, the stored data will look like a form of record, so users can
easily view their purchase history and understand which goods or products they
have purchased before, because all records are well structured.
2
BAIT2073 MOBILE APPLICATION DEVELOPMENT
(i) Async tasks are defined by calculations that run on a background thread and
whose results are published on the UI thread. It takes an Input , performs Progress
and gives an Output. Async tasks are used to avoid running heavy tasking on a
background process before returning the result to the UI.
(ii) Volley is an HTTP library that makes the network connection of Android
applications easier and, most importantly, faster. Volley is available on GitHub. For
example, when displaying search results, it is not suitable for large downloads and
streaming. The application can determine and cancel the priority of the request
through interception.
Foreground processes contain the applications that the user is working on while
the background processes contain the applications that are behind the scenes,
such as certain operating system functions,accessing the network or printing a
document. For example, when the user registers a new account into iPasar, they
need to key-in their email address or user name and password, this is a foreground
process. Meanwhile, the database will store their security details for further login
purposes and this is the background process. Beside that, the farmers that give live
streaming to consumers, they must switch on wifi to share the real-time connection.
The wifi connection is such a background process and the live steaming is such a
foreground process.
Question 2
ANSWER MARKS
Voice Sensor
The sensor can be used to answer various questions that the farmer needs to
search for orders, which means that the iPasar application provides the function of
AI Virtual Shopping Assistant chatbot where it supports the function of voice
recording and not only restricted to text message only. For example, the farmers
want to check their monthly total sales revenue, users can record the messages
they want to query, such as "Can you please show me the total sales of last
month?" by using the virtual shopping assistant AI chatbot. Then the AI chatbot will
display the farmer’s total sales revenue with all the orders made by last month.
Therefore, farmers who are not good at typing or writing in any language can
directly record voice messages for help.
(i) The location service allows consumers to purchase the products they want by
just staying at home(delivery).The application can roughly detect the location of the
item so that the consumer can always look at their orders. Therefore, the
application can immediately update these address locations in the UI to notify the
user that his items have arrived at the address location, and then the user can
know that his items are approaching his home.
(ii) I would recommend iPasar to use a wireless network compared with the
Global Positioning System(GPS). This is because iPasar is not a turn-by-turn
navigation application.
Accuracy
iPasar does not need to know that the user wants to send his items to his house or
office at the exact location in front of his house, behind his house, or a few meters
away. It only needs to know that the user wants the address of the location where
the item was sent. For example, the address of his house and office. Therefore, the
wireless network is more than enough for accuracy.
2
BAIT2073 MOBILE APPLICATION DEVELOPMENT
Power consumption
GPS consumes about the same amount of power, but it is obviously more accurate
than WiFi, and searching for unconnected WiFi hotspots also requires power.
However, as we mentioned above, iPasar does not need to have that kind of high
accuracy to know the exact location to deliver. Therefore, wireless networks which
consume lower power consumption is a better choice than using GPS.
Update interval
The wireless network can detect the location faster than GPS. When the items
purchased by the user are sent from the starting location (farmers location) to the
destination (the user's location), the application can roughly detect the location of
the item. Walk all the way until you reach your destination. Therefore, the
application can immediately update these address locations in the UI to notify the
user that his items have arrived at the address location, and then the user can
know that his items are approaching his home. For example, the item will pass
through locations A, B, and C before reaching the user's home. If the item arrives
at location B, the application will record and update the location of the Vesco retail
store and the address of B in the UI.
(i) Network card. The farmers need internet connection to post all their products
into the apps and also provide live streaming to promote their products. Besides
that, they also need a wireless network to view consumers’ location for the delivery
purpose. Meanwhile, the consumers also need a network to access the iPasar app
even for the login part, searching part, and order parts.
(ii) Yes. Since the iPasar has a live streaming selling feature, therefore, the farmers
have high battery usage to go through their live streaming. They need to switch on
the wifi and camera at the same time. Meanwhile, their live stream might be 2hours
and above, therefore, the desktop operating system is suitable for farmers. Besides
that, the consumer is also more convenient and efficient to use iPasar since it is
not only processed on mobile which means they have multiple devices can use
iPasar.
2
BAIT2073 MOBILE APPLICATION DEVELOPMENT
E-commerce
The iPasar mobile app is an app that focuses on buying and selling fresh food,
allowing users to place orders through this mobile app. The user can use this
application to search for the food he or she wants to buy. If he or she is worried
that the product he or she wants is sold out, he or she can also use this application
to pre-order the product. In addition, he or she can also Use the artificial
intelligence virtual shopping assistant chatbot service to query any information
about the product to learn more detailed information about the product he or she
wants to buy. If he or she finds a cheaper or better quality product in the same
category than what he or she wants, he or she can switch to the new product he or
she found. Finally, the user can place an order for the goods he or she wants
through the payment method he or she wants.