Android Modules Flashcards

1
Q

What is module?

A

Provides a container for your app’s source code, resource files, and app level settings such as the module-level build file and Android Manifest file.

the default module name is “app”.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Different Types of App Modules

A

Phone & Tablet Module
Wear OS Module
Android TV Module
Glass Module

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Feature Module

A

Represents a modularized feature of your app that can take advantage of Play Feature Delivery. For example, with feature modules, you can provide your users with certain features of your app on-demand or as instant experiences through Google Play Instant.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Library Module

A

Provides a container for your reusable code, which you can use as a dependency in other app modules or import into other projects. Structurally, a library module is the same as an app module, but when built, it creates a code archive file instead of an APK, so it can’t be installed on a device.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Android Library

A

This type of library can contain all file types supported in an Android project, including source code, resources, and manifest files. The build result is an Android Archive (AAR) file that you can add as a dependency for your Android app modules.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Java Library

A

This type of library can contain only Java source files. The build result is an Java Archive (JAR) file that you can add as a dependency for your Android app modules or other Java projects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Google Cloud Module

A
Provides a container for your Google Cloud backend code. This module has the required code and dependencies for a Java App Engine backend that uses simple HTTP, Cloud Endpoints, and Cloud Messaging to connect to your app. You can develop your backend to provide cloud services your app needs.
Using Android Studio to develop your Google Cloud module lets you manage app code and backend code in the same project. You can also run and test your backend code locally, and use Android Studio to deploy your Google Cloud module.

For more information on running and deploying a Google Cloud module, see Running, Testing, and Deploying the Backend.

Some people also refer to modules as sub-projects and that’s okay, because Gradle also refers to modules as projects. For example, when you create a library module and want to add it as a dependency to your Android app module, you must declare it as follows:

dependencies {
  compile project(':my-library-module')
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Project Structure in Android View

A

manifests
java
res

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Android Project View

A
build
libs
src
 --androidTest
 --main
       AndroidManifest.xml
        java/
        jni
        gen
         res
         assets
 --test
build.gradle (module)
build.gradle (project)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly