IT-487: Mobile Application Development

1-Question one

Please Open android studio and do the following: (you need to take screenshots of every steps that also authenticate your identity)

  • Create a new Android project (use your name).
  • Before you start, make sure to add constraint layout and make sure the Layout width and layout height is match parent. Also, make sure the Objects are work perfectly with each device.
  • Add two buttons. Add text view includes this statement Welcome to Fun app .
  • Assign unique IDs to each button and change the color for text view to red.
  • In MainActivity.java, make each button display:
  • Run the app using the Android Emulator.
  • Write the Java code inside the onCreate() method here:
  • A Toast message to the user (message should show your name and University ID).
  • A Log message in Logcat (message should show your name and University ID).

2-Question Two

Explain how Java and Android work together to build and run Android applications and what is the difference between activity_main.xml and MainActivity.java?

In your answer, discuss:

  • The role of Java in Android development
  • The compilation process (Java code Bytecode Machine code)
  • The role of Android Runtime (ART)
  • What an APK file contains
  • Difference between .xml and .java and how they work together.
  • What is res folder and java folder?

Provide clear explanations of each stage of the execution process, your answer length should be reasonable, any very long answer will deduct your grade.

3-Question Three

There are many files and folders when creating a new project (such as manifests, java, res, and Gradle Scripts).

Note: Someone delete one of these files and folder.

  • What challenges would developers face?
  • How would the absence of the AndroidManifest.xml file affect an app?
  • Why is calling super.onCreate() important in an Activity?
  • How does the emulator improve development efficiency compared to testing directly on a physical device?
  • In your opinion, which folder (manifests, java, res) is most important and why?

Try to support your answer with logical reasoning and answer for each question. your answer length should be reasonable, any very long answer will deduct your grade.

WRITE MY PAPER