Podcast
Questions and Answers
What is the function of the requestLocationUpdates() method in Android development?
What is the function of the requestLocationUpdates() method in Android development?
Which attribute is commonly used to control the display of hint text in an EditText field?
Which attribute is commonly used to control the display of hint text in an EditText field?
What is a primary characteristic of a web view in Android?
What is a primary characteristic of a web view in Android?
Which of the following is NOT a major development approach for mobile applications?
Which of the following is NOT a major development approach for mobile applications?
Signup and view all the answers
What is a Pending Intent in the context of Android development?
What is a Pending Intent in the context of Android development?
Signup and view all the answers
Study Notes
What is requestLocationUpdates()?
- A method used to periodically request location updates from a device
What is an API key?
- An authorization code that is used to identify and authenticate your Android app to Google’s servers
Give one use of Progress Bar
- To indicate an ongoing process, such as loading, saving, or downloading data
Give the query string for listing of calls registered in the Call Log
-
content://call_log/calls
State any two attributes of Imageview
-
src
: Sets the source of the image to be displayed. -
scaleType
: Determines how the image is scaled to fit the view
The ___________ method, provides a Bundle object as an argument so that you can use it to save your activity's state.
-
onSaveInstanceState()
The ___________ is the recommended unit for specifying the dimension of views in your layout.
-
dp (density-independent pixel)
____________ method is called when the content provider is started.
-
onCreate()
____________ property is used to display the hint text when EditText is empty.
-
android:hint
What is a web view?
- A component in Android that allows you to display web pages within your application
Write a note on Requirement Gathering techniques for Mobile Applications.
- The process of understanding the needs, expectations, and functionalities required for a mobile application.
- Techniques include:
- User interviews
- Surveys
- Competitor analysis
- Market research
Write on five major development approaches when building mobile applications.
- Native Development: Building apps using platform-specific languages and tools
- Hybrid Development: Combining web technologies like HTML, CSS, and JavaScript with native app components, creating cross-platform apps
- Cross-Platform Development: Using frameworks to create apps that can be deployed across multiple platforms with a single codebase (e.g., React Native, Flutter)
- Progressive Web Apps (PWAs): Web apps that offer native-like features, using technologies like service workers and app manifests
What is Pending intent?
- An object that represents an intent that can be executed at a later time
Explain the use of intent with the help of an example.
- Intents act as messages that can be sent between components in Android.
- They can be used to:
- Start an activity
- Start a service
- Broadcast a message
-
Example: Launching a web browser to visit a specific website via
ACTION_VIEW
intent
Explain the life cycle of a Fragment.
- onCreate(): Called when a new Fragment instance is created.
- onCreateView(): Called to create the Fragment's user interface (UI) layout.
- onActivityCreated(): Called after the Fragment's activity is created.
- onStart(): Called when the Fragment becomes visible to the user.
- onResume(): Called when the Fragment is now in the foreground and ready to interact with the user.
- onPause(): Called when the Fragment is no longer in the foreground, but may still be visible.
- onStop(): Called when the Fragment is no longer visible to the user.
- onDestroyView(): Called to destroy the Fragment's UI layout.
- onDestroy(): Called when the Fragment is destroyed.
What is Options menu?
- A menu that appears when a user taps the Menu button or the overflow icon on their device.
Explain any three attributes found in Anchoring view.
-
layout_anchorGravity
: Specifies gravity for the anchored view. -
layout_anchor
: The view that this view is anchored to. -
layout_anchorSide
**: The side where the anchored view will be positioned (e.g.,top, bottom, left, right
).
Explain view and view groups.Give list of attributes used in view and view groups.
-
View: A basic building block of a user interface (UI) in Android.
- Examples: TextView, Button, EditText, ImageView
-
ViewGroup: A container that holds and manages multiple views, controlling their layout and hierarchy.
- Examples: LinearLayout, RelativeLayout, FrameLayout, ConstraintLayout
Give two uses of an Image Button.
- To provide an image to represent a button's action
- To visually enhance user interaction and feedback.
Write a note on filtering with an example.
- The process of selecting or extracting specific data from a larger set based on certain criteria.
-
Example: Using a
SearchView
widget to filter a list of contacts based on a user-entered name.
Compare and explain EditText and AutoCompleteTextView with examples.
-
EditText: A text input field where users can enter and edit text.
- Example: A field for entering a password or username.
-
AutoCompleteTextView: A text field that provides suggestions as the user types, improving user input efficiency.
- Example: A search box for searching locations that provides autocomplete suggestions.
Write a note on external storage.
- Storage space available on a device, accessible externally by other applications.
- Used to store data files that persist beyond the app's lifetime
- External storage requires appropriate permissions.
Discuss displaying map in android.
- Achieved using the
GoogleMap
class from the Google Maps Android API. - Steps:
- Obtain an API key from Google Cloud Platform.
- Add the Google Maps Android API library to your project.
- Add a
<fragment>
tag to the layout file and set the fragment's class toSupportMapFragment
. - Use the
getMapAsync()
method to get a reference to theGoogleMap
object. - Configure the map with features like markers, polylines, and zoom controls.
Explain the basic ways of handling persisting data in Android.
- SharedPreferences: For storing small amounts of key-value data.
- Internal Storage: For storing files directly within the app's private directory.
- External Storage: Using public storage spaces on the device for data persistence.
- Databases: Using SQLite databases to manage structured data.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.