Watch this episode for free — or access the full course as a raywenderlich.com Professional Subscriber. Learn more here
Android Networking: Fundamentals
Part 1: Learn About HTTP & Threading Set Up the Project
— Android & Kotlin

Lesson Complete

Play Next Lesson
Next

Set Up the Project

Android Studio 3.6 or greater installed.

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

Install the required tools to open and work on the Taskie app, and explore the Android Studio project you’ll work on.

Contributors

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! :]

Reviews

Comments