This application provides users with the latest news articles fetched from a remote server. It's built using Kotlin and XML with the MVVM architecture, incorporating dependency injection using Dagger Hilt and local storage using Room Database. Users can search for news articles, paginate through the results, and save them for offline viewing. Additionally, the app checks for internet connectivity to ensure seamless operation. News articles are displayed using WebView for a rich browsing experience.
- Browse the latest news articles fetched from a remote server.
- Search for specific news articles based on keywords.
- Paginate through the search results to view more articles.
- Save news articles locally for offline viewing.
- Automatic internet connectivity check to ensure seamless operation.
- View news articles using WebView for a rich browsing experience.
Here are some screenshots showcasing the functionality of the application:
- Clone this repository to your local machine:
git clone https://github.com/your_username/news_app.git
-
Open the project in Android Studio.
-
Build and run the application on an Android device or emulator.
- Launch the application on your device.
- Browse through the latest news articles or use the search functionality to find specific articles.
- Paginate through the search results by clicking on the next or previous buttons.
- Tap on an article to view its details in a WebView.
- Save articles for offline viewing by clicking on the save button.
- Ensure that your device has an active internet connection for fetching the latest news.
- Dagger Hilt - Dependency injection framework for Android.
- Room Database - Local database for storing news articles.
- News API - Remote server providing news articles.
- ConnectivityManager - Used for internet connectivity check.
- WebView - Android system component used for displaying web content.
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request. Let's make this news app even better together!