Giter Club home page Giter Club logo

newspaper's Introduction

Newspaper

Release Build Status Code Quality Code Coverage Code Coverage Android API License

An aggregated news app containing news from 13 local news publishers in Hong Kong. Made with ❤

Screenshot (Compact) Screenshot (Dark) Screenshot (Details)

Features

  • Fast. Just fast.
  • Support video news
  • Auto face centering image cropping
  • Analyze news contents using Natural Language Processing
  • Read news from 10 local news publishers
  • Bookmarks and reading history
  • No ads. We hate ads as much as you do

Aggregated news publishers

Server implementation

newspaper-serverless

Blog posts

Requirements

This app supports Android 4.1 Jelly Bean (API 16) or later.

Acknowledgements

This app is made with the support of open source projects:

… and closed source services:

newspaper's People

Contributors

alan-tai avatar alantai-zuhlke avatar ayltai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

newspaper's Issues

Cloud sync

Sync settings/preferences to cloud

  • Bookmarks
  • Preferences

Pre-download original item images

KenBursView starts animating the next image once the previous one finishes, even if the next image has not yet been downloaded, resulting in a weird flashing side effect.

Pre-download all images can avoid this situation.

Or at least pre-download the next image. But this is not the best workaround because the issue will still exist if the pre-downloading cannot be finished with the transition duration, which is 10 seconds.

New news indicator

Periodically fetch for news and show an indicator if new news is found

Large image handling

Fresco and image viewers depending on Fresco cannot handle large images.

Alternatives:
https://github.com/davemorrissey/subsampling-scale-image-view
https://github.com/Piasy/BigImageViewer

Exception java.lang.OutOfMemoryError: Failed to allocate a 75360012 byte allocation with 2818368 free bytes and 2MB until OOM
dalvik.system.VMRuntime.newNonMovableArray (VMRuntime.java)
android.graphics.Bitmap.nativeCreate (Bitmap.java)
android.graphics.Bitmap.createBitmap (Bitmap.java:975)
android.graphics.Bitmap.createBitmap (Bitmap.java:946)
android.graphics.Bitmap.createBitmap (Bitmap.java:913)
com.facebook.imagepipeline.memory.BitmapPool.alloc (BitmapPool.java:55)
com.facebook.imagepipeline.memory.BitmapPool.alloc (BitmapPool.java:30)
com.facebook.imagepipeline.memory.BasePool.get (BasePool.java:259)
com.facebook.imagepipeline.platform.ArtDecoder.decodeStaticImageFromStream (ArtDecoder.java:137)
com.facebook.imagepipeline.platform.ArtDecoder.decodeJPEGFromEncodedImage (ArtDecoder.java:120)
com.facebook.imagepipeline.decoder.ImageDecoder.decodeJpeg (ImageDecoder.java:149)
com.facebook.imagepipeline.decoder.ImageDecoder.decodeImage (ImageDecoder.java:82)
com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder.doDecode (DecodeProducer.java:194)
com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder.access$200 (DecodeProducer.java:97)
com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder$1.run (DecodeProducer.java:129)
com.facebook.imagepipeline.producers.JobScheduler.doJob (JobScheduler.java:207)
com.facebook.imagepipeline.producers.JobScheduler.access$000 (JobScheduler.java:27)
com.facebook.imagepipeline.producers.JobScheduler$1.run (JobScheduler.java:78)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1113)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:588)
com.facebook.imagepipeline.core.PriorityThreadFactory$1.run (PriorityThreadFactory.java:43)
java.lang.Thread.run (Thread.java:818)

Aggregate multiple news sources

  • Remove dependency of Yahoo! sources
  • Aggregate multiple news sources
    • Apple Daily
    • Oriental Daily
    • Sing Tao
    • HKET
    • Sing Pao
    • Ming Pao
    • Headline
    • Sky Post
    • HKEJ
    • RTHK
  • Full news description
    • Apple Daily
    • Oriental Daily
    • Sing Tao
    • HKET
    • Sing Pao
    • Ming Pao
    • Headline
    • Sky Post
    • HKEJ
    • RTHK
  • Support multiple news images
  • Settings for picking sources
  • Settings for picking categories
  • Bookmark
  • Merge daily news with instant news categories
  • Unit tests
  • Instrumental tests
  • Data persistence

Connectivity detection

Detect connectivity changes, show a banner notice (i.e. snackbar), and disable/enable fetching from the Internet

Memory leak in BigImageView

If the user quits the app while BigImageView is still loading the image, ProgressNotifyRunnable will leak the Context.

Update readme

  • Update release download badge link
  • Update screenshots

Memory leak

The leak is due to the use of non-static instance of Handler, and probably because of the leak from DataSource created by ImagePipeline.

Related issues

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.