Terminology Flashcards
Learn to describe relevant android terminology (63 cards)
What is the context in an Android application?
The command center of an Android application that allows access to all application-specific functionality.
What is an Activity in Android?
An application is a collection of tasks, and each task is an Activity that typically handles the display of a single screen.
An Activity extends the Context class.
What is a Fragment in Android?
A part of an Activity that may be reused in several Activities, often used to organize functionality for a more flexible user experience across various screen sizes.
What is an Intent in Android?
An asynchronous messaging mechanism used by the Android operating system, represented by an Intent object that holds the content of a message.
For example, it might convey a request for an activity to present an image to the user or let the user edit some text.
What are Broadcast Receivers in Android?
Components that listen for broadcast Intents that match a filter.
What are Content Providers/Notifications?
Content Providers allow applications to share data and send notifications to users.
What is a Service in Android terminology?
A Service performs tasks that do not require user interaction.
When are Services most useful?
Services are most useful for lengthy operations or tasks that need to be done regularly.
What is an example of a task suitable for a Service?
Checking for new mail is an example of a task suitable for a Service.
What is the Application Context used for?
It is used to access settings and resources shared across multiple Activity instances.
How do you retrieve the Application Context?
Use the method: Context context = getApplicationContext();
How are Application Resources identified?
Resources have a unique identifier, which is a number automatically generated within the R.java class.
How do you retrieve a string resource in the Application?
Use the method: String greeting = getResources().getString(R.string.hello);
What method is used to access Application Preferences?
Use the method getSharedPreferences().
What is the purpose of the SharedPreferences class?
It can be used to save simple application data such as configuration settings.
How do you access Application Files and Directories?
This will be covered later.
How do you retrieve Application Assets?
Use the getAssets() method.
What does the getAssets() method return?
It returns an AssetsManager instance that can be used to open a specific asset by name.
What is core to any Android application?
android.app.Activity
What should you define and implement for each screen in an application?
An Activity
What are some examples of screens in a simple game application?
A Startup or Splash screen, A Main Menu screen, A Game Play screen, A High Scores screen, A Help/About screen
What class is often used for Activities to access new APIs on older API versions?
androidx.appcompat.app.AppCompatActivity
What allows Android applications to be multi-process?
The Android operating system