an android app demo to browse and read international news articles using API from newsapi.org
this is my approach for Bank Mandiri Technical Test provided by Nityo Infotech by making an android application based on the requirement as the solution
Click here to download the app
- Display the list of news categories.
- Show news sources when user click one of the news category.
- Show news articles when user click one of the news source.
- Show the article detail on web view when user click one of the article.
- Provide function to search news sources and news articles.
- Android device with minimum API 16 (Jelly Bean)
- Recomended using Android Studio 4.1.2
- Using Kotlin 1.4.32
- Clone from this repository
- Copy repository url
- Open your Android Studio
- New -> Project from Version Control..
- Paste the url, click OK
- Replace demo api key with your newsapi.org api key here
- utils > ConstantsObj > NEWSAPIORG_APIKEY
- Prepare the Android Virtual Device or real device
- Build and deploy the app module
This project is using MVVM design pattern. The project directory consist of 4 directories:
- data: The M (Model) in MVVM. Where we perform data operations.
- di: Dependency Injection directory with the help of Hilt.
- ui: User Interface directory for Fragments and ViewModels helping to display data to the user.
- util: Urilities directory for helper classes and functions.