Building an Android News App with the help of newsapi
This project aims to cover the basics of Android Apps by creating your very own News Portal
.
Following is our tech stack.
Kotlin
)We will use NewsApi as news feeder.
public static Retrofit getApiClient() {
if (retrofit == null) {
retrofit = new Retrofit.Builder()
.baseUrl(BASE_URL)
.client(getUnsafeOkHttpClient().build())
.addConverterFactory(GsonConverterFactory.create())
.build();
}
return retrofit;
}
Simply clone the project using the following command.
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) to the following line in .MainActivity.java
.
public static final String API_KEY = "API_KEY";
That’s it. Now enjoy your own news portal
Find bugs and create issues
.