š° News App
Maintainer
Farhaan Shaikh
š Description
The News App is an Android application built with Java and XML that allows users to stay updated with the latest news across various categories. Users can browse news by category, search for news based on keywords, and save articles for later reading. The app fetches news data from the gnews.io API, offering a seamless and intuitive interface for keeping up with current events.
āØ Features
- š Category-Wise News: Fetch news based on categories like Entertainment, Sports, Politics, Technology, and more.
- š Search News: Search for news articles based on keywords.
- ā Add to Favourites: Save your favorite news articles for easy access later.
- ā³ Watch Later: Mark articles to read or watch later.
- š View Full Articles: Click on any article to view full details with an option to open the original source.
š Installation
-
Clone the repository:
git clone https://github.com/FSfarhaan/News-App.git
-
Open the project in Android Studio:
- Open Android Studio
- Click on
File -> Open
- Select the cloned repository folder
-
Set up API Key:
- Sign up on gnews.io and get your API key.
- Add Your API key to your project in
utils/Constants.java
.
-
Build and Run the app:
- Connect your Android device or start an emulator.
- Click on the
Run
button in Android Studio.
š ļø Usage
-
Browsing News by Category:
- Open the app and choose a category from the top navigation (e.g., Entertainment, Sports, etc.).
- Browse through the list of articles in your selected category.
-
Searching for News:
- Use the search bar to enter keywords and fetch relevant articles.
-
Adding News to Favourites:
- Tap the heart icon on any article to add it to your favourites section.
-
Watch Later:
- Tap the save icon on any article to save it to your 'Watch Later' list.
-
View Full Article:
- Click on any news item to read more details, or follow the link to the original article for the full content.
š§© Code Overview
API Integration
- gnews.io API: The app uses the gnews.io API to fetch news based on categories and search terms.
- Retrofit: A type-safe HTTP client is used for making API calls.
š± Screenshots
š¤ Contributing
Contributions are welcome! If you'd like to improve the app or add new features, feel free to create an issue or submit a pull request.
š¬ Contact
If you have any questions or suggestions, feel free to contact me at farhaan8d@gmail.com.
Connect with me on LinkedIn.