Basic Components of an Android Application II Flashcards
Describe the build.gradle files and their use
● 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.
List all the subfolders in the res folder
Drawable
Menu
MipMap
Navigation
Values
XML
Describe the Drawable subfolder
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.
Describe the Menu subfolder
This contains menu resources, which can define an application menu (Options Menu, Context Menu, or submenu) that can be inflated with MenuInflater
Describe the Mipmap subfolder
This subfolder specifically contains mipmap
drawables that are used as app/launcher icons.
Describe the Xml subfolder
This is for miscellaneous XML files that configure application components. For example, an XML file that defines a PreferenceScreen,
AppWidgetProviderInfo, or Searchability Metadata.
Describe the Navigation subfolder
This subfolder contains navigation components to help implement navigation from simple button clicks to more complex navigation patterns
Describe the values subfolder
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.
What are the options available for testing applications
– Virtual devices (emulators) – Android Virtual Devices (avds)*resource intensive
– Physical devices (actual phones)
– *Third party emulators
What is the procedure for creating an AVD
– 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
What is the procedure for USB debugging
– 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) .
What is the procedure for wireless debugging
– 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.
Example of third-party emulators
Bluestacks, Nox, MeMu