Android News API
-
Android application that uses the News API to display current news
-
The application displays news from Business Insider
Powered by News API
Permissions
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Dependency
implementation 'com.squareup.picasso:picasso:2.71828'
app/java/MainActivity
String API_KEY = "API Key"; //your API key from News API
String SELECTED_NEWS = "business-insider"; //you can choose from various news outlets available from News API4
How to sign up for a free non-commerical use of the News API
Go to the NewApi website and click on Get API key
Here you will register for an account
You will need to add a attribution link, which is required for free non-commercial use
References
AndrosStock Tutorial