Mobile Application Development

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

What is a Native App?

  • A cross-platform application.
  • A web app that runs on a browser.
  • An application written specifically for a single platform. (correct)
  • An application that only uses HTML/CSS.

What is the purpose of an Activity in Android?

  • To handle network requests.
  • To manage a single screen with a user interface. (correct)
  • To save offline data.
  • To send notifications.

Which method is called first in the lifecycle of an Activity?

  • onPause()
  • onStart()
  • onCreate() (correct)
  • onDestroy()

How does a Fragment differ from an Activity?

<p>It is a part of an Activity. (A)</p>
Signup and view all the answers

To store simple key-value data on Android, which of the following should you use?

<p>SharedPreferences (A)</p>
Signup and view all the answers

Which programming language does Flutter use?

<p>Dart (D)</p>
Signup and view all the answers

In what format do APIs commonly return data in mobile applications?

<p>XML or JSON (D)</p>
Signup and view all the answers

Which tool is commonly used to make API calls in Android?

<p>Retrofit (A)</p>
Signup and view all the answers

What is a key advantage of a cross-platform app?

<p>Write once, run everywhere. (D)</p>
Signup and view all the answers

MVVM stands for?

<p>Model View ViewModel (C)</p>
Signup and view all the answers

What is the main responsibility of a ViewModel?

<p>Managing UI logic. (B)</p>
Signup and view all the answers

What type of error commonly causes an Android app to crash?

<p>NullPointerException (C)</p>
Signup and view all the answers

Which of the following is a popular Flutter library for state management?

<p>All of the above (D)</p>
Signup and view all the answers

CoreData is a local data storage technology in which operating system?

<p>iOS (D)</p>
Signup and view all the answers

Which of the following is a method for optimizing a mobile app?

<p>Cache frequently used data. (B)</p>
Signup and view all the answers

Which method should be used to run long-term background tasks in Android?

<p>Service (A)</p>
Signup and view all the answers

Which library can be used for JSON parsing?

<p>GSON (C)</p>
Signup and view all the answers

What is an Authorization Token commonly used for?

<p>Security when accessing an API. (A)</p>
Signup and view all the answers

The lifecycle of a Fragment is tied to?

<p>The Activity it's contained in (C)</p>
Signup and view all the answers

How many basic layers does Clean Architecture divide an app into?

<p>3 layers (Presentation - Domain - Data) (B)</p>
Signup and view all the answers

Flashcards

What is a Native App?

An application written specifically for a particular mobile operating system.

What does an Activity do in Android?

Manages a single screen with which the user can interact.

Which method is called first in the Activity lifecycle?

The first method called when an Activity is created, used for initialization.

What is a Fragment?

A reusable section of an Activity that has its own lifecycle and UI.

Signup and view all the flashcards

What are SharedPreferences used for?

Stores key-value pairs for simple data like user preferences.

Signup and view all the flashcards

What language does Flutter use?

Dart is the programming language used to build Flutter apps.

Signup and view all the flashcards

What data format do mobile APIs commonly return?

XML or JSON is the common format for transferring data between mobile apps and APIs.

Signup and view all the flashcards

What is Retrofit used for?

Retrofit is a popular library for making network requests in Android.

Signup and view all the flashcards

What is a major advantage of Cross-platform apps?

Write once, run anywhere. Codebase usable across multiple platforms.

Signup and view all the flashcards

What does MVVM stand for?

Model-View-ViewModel, an architectural pattern.

Signup and view all the flashcards

What is the main responsibility of a ViewModel?

Manages UI-related data and logic.

Signup and view all the flashcards

What error commonly causes an Android app to crash?

NullPointerException, an exception that occurs when trying to use a null reference.

Signup and view all the flashcards

Popular Flutter state management libraries?

A popular state management library includes Bloc, Redux, and Provider.

Signup and view all the flashcards

CoreData's OS?

CoreData is a local data storage technology in iOS.

Signup and view all the flashcards

What is a method to optimize mobile apps?

Caching frequently used data to reduce network requests and improve performance.

Signup and view all the flashcards

How to run long background tasks in Android?

Service runs in the background and can perform long-running tasks without user interaction.

Signup and view all the flashcards

Library to parse JSON?

GSON is used to convert JSON data into Java objects and vice versa.

Signup and view all the flashcards

Authorization Token

Used to secure API access; validates and authorizes the user.

Signup and view all the flashcards

Fragment lifecycle is tied to?

The Fragment lifecycle is tied to the Activity that contains it.

Signup and view all the flashcards

Clean Architecture layers?

Presentation, Domain, and Data.

Signup and view all the flashcards

Study Notes

  • These notes cover key concepts in mobile application development, spanning native Android development, cross-platform solutions like Flutter, architectural patterns, data management, and optimization techniques.

Native Apps

  • Native apps are specifically developed for a particular platform (e.g., iOS or Android).

Android Activity

  • An Activity manages a single screen of the user interface in Android.
  • onCreate() is the first method called in the Activity lifecycle.

Fragments

  • A Fragment is a portion of an Activity, not independent.

Data Storage

  • SharedPreferences are used for storing simple key-value data in Android.

Flutter

  • Flutter uses the Dart programming language.

API Data Format

  • APIs in mobile applications commonly return data in XML or JSON format.

API Calls in Android

  • Retrofit is a popular tool for making API calls in Android.

Cross-Platform Apps

  • A key advantage of cross-platform apps is the ability to write code once and deploy it on multiple platforms.

MVVM Architecture

  • MVVM stands for Model View ViewModel.
  • The ViewModel is responsible for managing UI logic.

App Crashes

  • An Android app crash often results in a NullPointerException.

Flutter State Management

  • Bloc, Redux, and Provider are all popular libraries for state management in Flutter.

CoreData

  • CoreData is a local data storage technology in iOS.

Mobile App Optimization

  • Caching frequently used data is a method for optimizing mobile apps.

Background Tasks in Android

  • A Service is used to run long-term background tasks in Android.

JSON Parsing

  • GSON can be used for JSON parsing.

Authorization Tokens

  • Authorization Tokens are commonly used for security when accessing APIs.

Fragment Lifecycle

  • The lifecycle of a Fragment is tied to the Activity it is contained within.

Clean Architecture

  • Clean Architecture divides an app into 3 basic layers: Presentation, Domain, and Data.

Notification Channels

  • Notification Channels are required starting with Android Oreo (Android 8).

Memory Leak Prevention

  • To prevent memory leaks in Android, proper lifecycle management, avoiding holding context references, and clearing listeners when not in use are essential.

Flutter Widgets

  • StatefulWidget is a Flutter widget that can change its state when data changes.

Android Manifest

  • The Android Manifest is used to declare permissions and application configurations.

Handling Large Datasets

  • RecyclerView is used to efficiently display large lists of items (thousands) in the UI.

App Background State

  • When an application goes into the background, the Activity enters the onStop() state.

Dependency Injection

  • Dependency Injection facilitates easier dependency management and module separation.

3-Tier Architecture

  • An example of a 3-tier architecture is Domain - Data - Presentation.

Token Refresh

  • Token Refresh is commonly used when a token expires.

Flutter BuildContext

  • In Flutter, BuildContext is used to build the widget tree and access parent widgets.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

More Like This

Android Development: Toast
30 questions

Android Development: Toast

VersatileEinsteinium avatar
VersatileEinsteinium
Android Kotlin Development Overview
45 questions
Use Quizgecko on...
Browser
Browser