Skip to content

Android application that uses the News API to display current news

License

Notifications You must be signed in to change notification settings

JonathanMoreno14/AndroidNewsApp

Repository files navigation

Android News API

  • Android application that uses the News API to display current news

  • The application displays news from Business Insider

webp net-gifmaker 4

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

screen shot 2018-05-31 at 10 50 17 am

Here you will register for an account

screen shot 2018-05-31 at 10 50 30 am

You will need to add a attribution link, which is required for free non-commercial use

screen shot 2018-05-31 at 10 51 35 am

References

AndrosStock Tutorial

WebView

AsyncTask

JSONObject

JSONArray

HttpURLConnection

About

Android application that uses the News API to display current news

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages