CC107 - Networking & Background Services in Android

0.0(0)
studied byStudied by 4 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/24

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

25 Terms

1
New cards

Networking

Manage connections and HTTP requests efficiently.

2
New cards

JSON Parsing

Extract data from API responses.

3
New cards

Background Services

Execute operations without blocking the UI.

4
New cards

Internet Permission

Before your app can access the internet, you must declare this capability in your AndroidManifest.xml file.

5
New cards

Normal Permission

Network access is considered a normal permission, meaning it's automatically granted at install time.

6
New cards

HTTPS

Secure network traffic for Android 9 (API level 28) and higher.

7
New cards

Cleartext HTTP Traffic

Unencrypted HTTP traffic blocked by default starting with Android 9.

8
New cards

Global Cleartext

The simplest way to allow HTTP connections across your entire app is by setting android:usesCleartextTraffic="true".

9
New cards

Network Security Configuration

A more secure approach that limits cleartext traffic to defined domains.

10
New cards

Network Availability

Verify that an active internet connection exists before attempting any network operation.

11
New cards

ConnectivityManager

Accessed from Android's system services to check network state.

12
New cards

NetworkInfo

The older approach providing basic connectivity checks.

13
New cards

NetworkCapabilities

Provides detailed connection information including transport type and bandwidth.

14
New cards

Network Utility Method

Handles both modern and legacy Android versions, checking for WiFi or cellular connectivity.

15
New cards

HttpURLConnection

Built into core Java, provides low-level control over HTTP requests and responses.

16
New cards

OkHttp

Efficient HTTP client with connection pooling.

17
New cards

Retrofit

Type-safe REST client that converts APIs into Java interfaces.

18
New cards

GET Request

Fetch data from a server using HttpURLConnection.

19
New cards

API Endpoint

https://jsonplaceholder.typicode.com/posts

20
New cards

JSON

JavaScript Object Notation, the standard format for data exchange between web services and mobile apps.

21
New cards

Objects

Key-value pairs enclosed in {}.

22
New cards

Arrays

Ordered lists enclosed in [].

23
New cards

Values

Strings, numbers, booleans, null.

24
New cards

Main Thread

Android's UI thread that handles all user interactions and screen updates.

25
New cards

Application Not Responding (ANR)

System dialog displayed when the main thread is blocked for more than 5 seconds.