This is the code part of the social media android client in our project. You can find the API server & web client and the TCP server in a different repesatories.
For further explanation please open the main repository of this project- the API server & web client.
To run the android client, open the android studio app on the android client folder. make sure that your android sdk has a correct config, and run it from there (of course you can run it both on an emulator, a phisycal device).
- Please make sure that the TCP server and the API server is running first. It won't work without it.
Our Android client mirrors the web client's functionality, distinguished by its refined design employing the MVVM architecture. The app utilizing a local Room database. This plays a crucial role in enhancing the user experience by providing seamless access to data even in offline scenarios.
graph LR;
A(Activity) --> G([RecycleView Adapter]);
A --Operation --> B(View Model);
B --Notification --> A;
B --Operation --> C(Repository);
C --Notification --> B;
C <--> E([Room]);
C <--> F([Web-sevice Api]);
First, you need to click on the sign up for FooBar button that will navigate you to the register page were you can create an account. make sure you fill your personal information correctly!
After you register you can log-in and use FooBar, make sure you fill your personal information correctly
After you log-in you will be navigate to your feed.
- You can like and unlike a post, etc.
- You can see the comment and the share menu.
- You can edit your user name and picture if you click on the menu.
- You can add, edit and delete posts only if the posts is yours.
- If your post contain link or URL which is not safe - a message will be displayed to the user and the post will not be uploaded or updated.
- You can add, edit and delete comments only if the comments is yours.
- You can log out or delete your account if you click on the menu.
- You can change light mood to dark mood if you click on the sun img on the top of the screen.
- You can see your friends requests list if you click on the friends requests button that in the bottom menu. There you can also approve or decline the requests.
- You can navigate to your profile page by clicking your user. There, you can see your friends and your posts
- You can click on the name or picture in each post and get to the personal profile page of the author of the post, where you can also send a friend request or if you are already friends - see the user posts, friends list and an option to delete the user from your friend list.