StoryPlayer Android Project

This repository contains an Android application for displaying stories similar to Instagram.

You can watch my demo at that link

Project Requirements

Create a UI component which will be a very simple version of Instagram’s Story Player. The followings are what your module needs to be able to do.

  1. Cubic transition among story groups.
  2. Pause the story immediately when the users rest and hold, continue when lifted.
  3. Go to the previous story and/or story group when users tapped left.
  4. Go to the next story and/or story group when users tapped right.
  5. Story media could be dummy images and videos on the internet to be downloaded by the player.
  6. Duration for images is 5 seconds.
  7. Durations for videos are their content length.
  8. Each story in a story group should have an individual progress bar on top of the screen which arranges itself according to its duration.
  9. While users swiping among story groups, story groups should start from the story they left off unless they are seeing for the first time.

Opening the Project in Android Studio

To open the project in Android Studio, follow these steps:

  1. Clone the repository to your local machine.

  2. Open Android Studio.

  3. On the Welcome screen, click "Open an Existing Project".

  4. Navigate to the cloned repository directory.

  5. Open the StoryPlayer subdirectory as the project root.

  6. You can follow the images to switch to the Android Scope also

Screen Shots

Screenshot 2024-04-25 at 10 23 56 Screenshot 2024-04-25 at 11 11 51 Screenshot 2024-04-25 at 10 32 09

If it couldn't work somehow you should do Invalidate caches

Screenshot 2024-04-25 at 11 08 12 Screenshot 2024-04-25 at 11 08 55 Screenshot 2024-04-25 at 11 12 50

If your device is Android 11 or higher, select always install with package manager

Screenshot 2024-04-25 at 11 20 05 Screenshot 2024-04-25 at 11 20 22

Installing apk on your android device directly

Here is the apk

If you have an android device, open its developer mode, and connect to your computer. Then you should install the apk by adb install. With the following command:

adb install <path_to_app-debug.apk>

If your device doesn't have adb you should install adb first by the following link