Tamia  Walter

Tamia Walter


Build a Custom Social Network/Timeline Feed With Kotlin

In this post, we’ll create a simple social network, called “The Stream”, that allows a user to post messages to followers.

The app will allow a user to post a message to their followers. Stream’s Activity Feed API, combined with Android, makes it straightforward to build this sort of complex interaction. All source code for this application is available on GitHub. This application is fully functional on Android.

Often there is the context around those code snippets, which are essential, such as layout or navigation. Please refer to the full source if you’re confused about how something works, what libraries and versions are used, or how we got to a screen. Each snippet will be accompanied by a comment explaining which file and line it came from.

Building “The Stream”

To build our social network, we’ll need both a backend and a mobile application. Most of the work is done in the mobile app, but we need the backend to create frontend tokens for interacting with the Stream API securely.

For the backend, we’ll rely on Express ( Node.js) leveraging Stream Feed’s JavaScript library.

For the frontend, we’ll build it with Kotlin wrapping Stream Feed’s Javalibrary.

There are two main actions a user takes, posting, and viewing messages. To post a message, the mobile application goes through his flow:

  • User types their name into our mobile application to log in.
  • The Android app registers the user with our backend and receives a Stream Activity Feed frontend token.
  • User types in their message and hits “Post”. The mobile app uses the Stream token to create a Stream activity on their user feed via Stream’s REST API using the Java library.
  • User views their posts. The mobile app does this by retrieving its user feed via Stream.

Here’s what happens if another user wants to follow a user and view their messages:

  • User logs in.
  • User navigates to the user list and selects a user to follow. The mobile app communicates with Stream API to create a follower relationship on their timeline feed.
  • User views their timeline. The mobile app uses Stream API to retrieve their timeline feed, which is composed of all the messages from who they follow.


Basic knowledge of Node.js (JavaScript) and Android (Kotlin) is required to follow this tutorial. This code is intended to run locally on your machine.

If you’d like to follow along, you’ll need an account with Stream. Please make sure you can build a simple Android app before embarking on this tutorial. If you haven’t done so, make sure you have Android Studioinstalled.

Once you have an account with Stream, you need to set up a development app. This is done from your dashboard:

You’ll need to add the credentials from the Stream app to the backend .envfile and start the server for the mobile application to work. See the backendREADME.md for more information.

Let’s get to building.

#android-app-development #kotlin #programming #android #software-engineering

What is GEEK

Buddha Community

Build a Custom Social Network/Timeline Feed With Kotlin
Jones Brianna

Jones Brianna


How To Create A Social Network Platform Like Facebook & Instagram

Social networking app development can be entertaining and challenging and you can be guaranteed a successful social media app development if a methodical passageway to the invention is followed. Not sure where to start? Implement 7 Easy Steps to Create A Social Media App

#social network app development services #social network application development services #social network app development company #social network app development #social media app development company #social media app development

Jones Brianna

Jones Brianna


Top 5 Social Network App Development Companies


Social media has become a habitual thing for everyone in this world and also it has become an integral part of everyone’s life. In this article, we are sharing a curated list of Top 5 Social Network App Development Companies that have extensive and years of experience in developing custom social network solutions including online dating, corporate network, photo sharing, and social community apps development.

#social network app development services #social network application development services #social network app development company #social network app development #social media app development company

Jones Brianna

Jones Brianna


Top 5 Social Media App Development Strategies 2020 - Mobiweb

Creating a social media app is not an easy task but with great ideas, experience and a proficient team of social media makers can make the project successful. A social media app development company will help an entrepreneur to reach his business goals and bring in true and loyal users.

#social network app development services #social network application development services #social network app development company #social media app development company #social media app development #social media platform development

Bella Garvin

Bella Garvin


Social Media App Development USA I Social Networking Website Development Comapny

Orbit Edge is a master in social media app development service. We use SaaS and open source technologies to build highly secure and user-engaging social media platforms in customer budgets. Hire social media app developers from us can help you to develop a multi-functional mobile app within few days.

#social media website development #social media app development #social media app development company #social networking app development services #hire social networking app developers

Jones Brianna

Jones Brianna


How to Build a Social Media App in 7 Steps?


The social media app development will largely depend on the level of the social media app developer, designer expertise, technology stack and choice of platform. You can always choose to hire a professional social media app development company to transform your idea into digital reality.

#social media app development #social media app developers #social networking app #social networking app developers #social media app providers