Reference no: EM132303275
Assignment -Application with multiple activities
Android Development
This assignment requires you to develop a simple Android application that uses multiple activities, which are related using Intents. To write the application you will need to use the Android Studio (IDE) 3.2 or latest version.
Your application must perform all tasks listed in this document and can run on any Android device with a minimum API version of 21 (Lollipop 5.0) up to the latest version of Android.
Your application should be created to display correctly on an emulated Nexus 5X ( 1080 X 1920 pixels in portrait orientation) - however, by using sizes specified in "density independent pixels" (dp) the application should also be able to display correctly on any Android device with any sized screen and resolution.
Tasks
Task 1
Create an app. that will offer two features:
(i) Convert weight from kilograms to pounds and vice versa.
(ii) Covert distance measurements provided as kilometers into miles and vice versa.
The main screen (activity) of the app. must provide a method to select one of the two conversions offered. You can use two buttons or two images to offer the selection.
The app. must,
- Have a total of three different activities.
- Properly support orientation changes. Specifically, it should not lose values/state information.
Write a page report (not more than one page) on the following two questions:
1. How different activities are connected?
2. How orientation change is managed?
You may provide code snippets to answer the above questions. All code snippets must be commented.
Task 2
The Android developer documentation describes an Intent as follows:
"Activities in Android are activated through messages called intents. Intent messaging is a facility for late run-time binding between components in the same or different applications. The intent itself, an Intent object, is a passive data structure holding an abstract description of an operation to be performed."
Briefly answer the following questions within the context of the above information:
(a) Why is the intent messaging facility considered as a late run-time binding between components?
(b) What are the contents of the passive data structure (of an intent)?
(c) Why is the word "passive" used for the intent data structure? (Hint: What is the responsibility of an Intent object? Do they have any inherent intelligence built into them?)
(d) Use an example to better explain the sentence "abstract description of an operation to be performed".
Attachment:- Application with multiple activities.rar
Installation and Configure Enterprise Network Servers
: MN506 System Management Assignment - Design, Installation and Configure Enterprise Network Servers, Melbourne Institute of Technology, Australia
|
Is there a way to control the growth of population
: What economic, security, political, and other challenges do these emissions pose to the people of the developing world, and who are the biggest offenders?
|
How do perceptions affect individual behavior
: SOC3600: How can "framing" and "confirmative bias" shape [mis]perceptions? How do perceptions affect individual behavior?
|
Writing response on nonprofit v criminal justice
: Criminal justice organizations and nonprofit organizations have a lot of factors and/or characteristics that are similar as well as different.
|
Application with multiple activities
: Create an app that will offer features Convert weight from kilogram to pounds and vice versa and Covert distance measurements provided as kilometer to pounds
|
Write response of given problem related to supervisor
: A first line supervisor needs to receive proper training not only for their individual self but also for the personnel they will be supervising.
|
How you found the relevant articles for your paper
: Why you chose this topic, how you found the relevant articles for your paper, and how are you organizing your paper.
|
What are the techniques for recruitment methods
: Assume you hold the Special Agent in Charge role of the Joint Terrorism Task Force, Minneapolis field office. Your squad is responsible for identifying.
|
An explanation of how your theory conceptualizes
: Write a 8- to 10-page theory paper that articulates your theoretical orientation toward working with couples and families.
|