Untitled Quiz
5 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the function of the requestLocationUpdates() method in Android development?

  • To register for location updates from the GPS. (correct)
  • To request permission to use the camera.
  • To initiate a network request for data.
  • To handle user interface updates.
  • Which attribute is commonly used to control the display of hint text in an EditText field?

  • hint (correct)
  • placeholder
  • label
  • defaultText
  • What is a primary characteristic of a web view in Android?

  • It allows for the embedding of web content in an application. (correct)
  • It extends the functionality of List View.
  • It is solely used for displaying images.
  • It is a container for various visual components.
  • Which of the following is NOT a major development approach for mobile applications?

    <p>Standalone app development</p> Signup and view all the answers

    What is a Pending Intent in the context of Android development?

    <p>An Intent that allows the app to execute an action in the future.</p> 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()
    • 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 to SupportMapFragment.
      • Use the getMapAsync() method to get a reference to the GoogleMap 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.

    Quiz Team

    Related Documents

    BCA Mad Exam April 2024 PDF

    More Like This

    Untitled Quiz
    6 questions

    Untitled Quiz

    AdoredHealing avatar
    AdoredHealing
    Untitled Quiz
    37 questions

    Untitled Quiz

    WellReceivedSquirrel7948 avatar
    WellReceivedSquirrel7948
    Untitled Quiz
    55 questions

    Untitled Quiz

    StatuesquePrimrose avatar
    StatuesquePrimrose
    Untitled Quiz
    18 questions

    Untitled Quiz

    RighteousIguana avatar
    RighteousIguana
    Use Quizgecko on...
    Browser
    Browser