An open API service indexing awesome lists of open source software.

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

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:.