Android Networking: Fundamentals

Sep 6 2022 · Kotlin 1.6, Android 12, Android Studio Chipmunk | 2021.2.1 Patch 1

Part 1: Learn About HTTP & Threading

02. Set Up the Project

Episode complete

Play next episode

About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 01. Introduction Next episode: 03. Connect to the Internet

Notes: 02. Set Up the Project

Android Studio 3.6 or greater installed.

The student materials have been reviewed and are updated as of July 2022.

Transcript: 02. Set Up the Project

To learn all the concepts from the introduction, you’ll work on a small and useful app called Taskie.

Taskie, as the name gives away, is used to write down tasks or notes for yourself, which you need to complete.

To open the project, you should use Android Studio 3.6 or greater. If you’ve been following our Android learning path courses so far, you should have it downloaded.

If not, head over to the AS download website, and install the IDE. The installation is pretty straightforward, and you can choose all the default settings.

After installing the tool, open the project, located in the student materials of this course. Once it syncs, you can explore the structure.

The structure is pretty simple. In the model package, you can find all the data objects which represent various data within the app.

Such as requests you’ll send to the server, responses you will receive from the server, and general models you’ll show on the UI.

The next package is networking, and as the name states, it holds the classes required to communicate to the server.

Currently it holds a single class, RemoteApi, which has fake data and calls implemented, but you’ll slowly change this throughout the course.

The ui package holds all the files for various features of the app.

Like the login feature, the main screen with two fragments - profile and notes, and their dialogs, and the register screen.

The utils package holds some utility functions for the view layer of the app.

And finally, App is used to start and create all the shared objects for the app, like the shared preferences.

If you run the app, you’ll see the general navigation. You can register or log in, and then browse through your notes, by priority - low is green, medium is orange and red is high.

And you can check out your “profile”, which shows your information and the amount of notes you have which aren’t completed.

The app will connect to the Server, the API, also known as the application programming interface, which I’ve built and deployed. It’s a small server which stores the notes for each user, and you can complete them or delete them.

Throughout the app, you’ll create specific calls for the project. You can check out the documentation for all the API calls you’ll implement, in the documentation pdf file, within each of the projects.

So let’s get on to working on the project! :]