Basic Components of an Android Application II Flashcards

1
Q

Describe the build.gradle files and their use

A

● There are two files with this name:
– One for the project, “Project: My_First_App,”
– One for the app module, “Module:
My_First_App.app.”
● Each module has its own build.gradle file.
● One should use each module’s build.gradle file to control how the gradle plugin builds an app.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

List all the subfolders in the res folder

A

Drawable
Menu
MipMap
Navigation
Values
XML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Describe the Drawable subfolder

A

This contains graphic resources that can be drawn on a screen, eg, app icons, logos, game graphics, etc.
Apart from xml files, it can also contain bitmap files (PNG, JPEG,
or GIF) and other graphic formats.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Describe the Menu subfolder

A

This contains menu resources, which can define an application menu (Options Menu, Context Menu, or submenu) that can be inflated with MenuInflater

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Describe the Mipmap subfolder

A

This subfolder specifically contains mipmap
drawables that are used as app/launcher icons.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Describe the Xml subfolder

A

This is for miscellaneous XML files that configure application components. For example, an XML file that defines a PreferenceScreen,
AppWidgetProviderInfo, or Searchability Metadata.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Describe the Navigation subfolder

A

This subfolder contains navigation components to help implement navigation from simple button clicks to more complex navigation patterns

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Describe the values subfolder

A

This is used to store the values for the resources that are used in many Android projects to include features of color, styles, dimensions etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the options available for testing applications

A

– Virtual devices (emulators) – Android Virtual Devices (avds)*resource intensive

– Physical devices (actual phones)

– *Third party emulators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the procedure for creating an AVD

A

– Go to tools – Device Manager – Create Device
– Choose the Phone category, then choose a desired device
– Select a system image (Android API)
– Verify configurations
– Finish

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the procedure for USB debugging

A

– Ensure you have a USB cable that can communicate data
– Enable the developer mode
– Go to Developer options, locate USB Debugging and enable this option.
– Allow the security verification(s) on your device to allow access
– The device will now be identified on Android Studio as an option (Available devices) .

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the procedure for wireless debugging

A

– Ensure you that both your devices are connected to the same Wi-Fi.
– Enable the developer mode
– Go to Developer options, locate Wireless Debugging and enable this option.
– Allow the security verification(s) on your device to allow access
– Click on the enabled Wireless debugging and select either to pair device with QR
code
– Under Available devices, select Pair Devices using Wi-Fi, then scan the QR code or
use the pairing code to connect.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Example of third-party emulators

A

Bluestacks, Nox, MeMu

How well did you know this?
1
Not at all
2
3
4
5
Perfectly