https://github.com/devdhera/guide-to-andriod-apps
Building an Android News App with the help of newsapi
https://github.com/devdhera/guide-to-andriod-apps
android app newsapi simple-guide
Last synced: about 2 months ago
JSON representation
Building an Android News App with the help of newsapi
- Host: GitHub
- URL: https://github.com/devdhera/guide-to-andriod-apps
- Owner: DevDHera
- License: mit
- Created: 2019-02-16T03:26:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-21T18:22:06.000Z (over 7 years ago)
- Last Synced: 2025-03-30T23:15:35.791Z (about 1 year ago)
- Topics: android, app, newsapi, simple-guide
- Language: Java
- Size: 1.74 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Guide to Android Apps :sunglasses:
This project aims to cover the basics of Android Apps by creating your very own `News Portal`.
## What we will use :astonished:
Following is our tech stack.
* Java (:unamused: Sorry, No `Kotlin`)
* Retrofit
* Glide
* GSON
* Prettytime
We will use [NewsApi](https://newsapi.org/) as news feeder.
## Look at the Codebase
```java
public static Retrofit getApiClient() {
if (retrofit == null) {
retrofit = new Retrofit.Builder()
.baseUrl(BASE_URL)
.client(getUnsafeOkHttpClient().build())
.addConverterFactory(GsonConverterFactory.create())
.build();
}
return retrofit;
}
```
## Steps to Run
Simply clone the project using the following command.
```sh
git clone https://github.com/DevDHera/Guide-to-Andriod-Apps.git
```
Or you can checkout from the VCS using the **Android Studio**.
After that make sure to add your own **API Key**(obtained from [newsapi.org](https://newsapi.org/)) to the following line in `.MainActivity.java`.
```java
public static final String API_KEY = "API_KEY";
```
That's it. Now enjoy your own news portal :ok_hand:
## Now what :question:
Find bugs :beetle: and create issues :blush:.