GithubHelp home page GithubHelp logo

cvbutani / newsapp Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 5.55 MB

News app using The Guardian API.

License: MIT License

Java 100.00%
android-app json-parse http-networking thread-parallel asynctaskloader loadermanager picasso-library shared-preferences preference-screen intents

newsapp's Introduction

News App

Overview

The goal is to create a News feed app which gives a user regularly-updated news from the internet related to a particular topic, person, or location. The project is part of Nanodegree program on Udacity.

Helpers

  • Guardian API
  • JSON Parsing
  • HTTP Networking
  • Threads & Parallelism
  • Fetching data from an API
  • Using an AsyncTask
  • Loader Manager
  • Picasso library
  • Shared Preference
  • Preference Fragment
  • Web Intent
  • Drawer layout
  • Uri builder

API

In this project, I am using Guardian API. It is well-maintained and returns information in a JSON format.

http://content.guardianapis.com/search?q=debate&tag=politics/politics&from-date=2014-01-01&api-key=test
http://content.guardianapis.com/search?q=debates&api-key=test 

Picasso Library

Images add much-needed context and visual flair to Android applications. Picasso allows for hassle-free image loading in your application—often in one line of code!

  • Handling ImageView recycling and download cancelation in an adapter.
  • Complex image transformations with minimal memory use.
  • Automatic memory and disk caching.
 Picasso.get()
	.load(getString(R.string.your_link))
	.into(imageView);
Gradle dependencies
implementation 'com.squareup.picasso:picasso:2.71828'
Adapter Downloads
@Override public void getView(int position, View convertView, ViewGroup parent) {
  SquaredImageView view = (SquaredImageView) convertView;
  if (view == null) {
    view = new SquaredImageView(context);
  }
  String url = getItem(position);
  Picasso.get().load(url).into(view);
}

The source code to the Picasso, its samples, and this website is available on Github.

UX DESIGN

newsapp's People

Contributors

cvbutani avatar

Watchers

 avatar

Forkers

mohitsingh886

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.