An open source Hacker News client for Android.

Related tags

App HackerNews
Overview

Hacker News

Come chat with us on Gitter.im!

Come chat with us!

Screenshot of the app

An open source Hacker News client for Android phones & tablets.

Get it on Google Play!

Available on the Google Play Store

How to build

The basic outline is this: there are 6 jars in the libs folder that the project depends on. Additionally you need one of my library projects, HoloTheme. It's basically a collection of utility classes & method's I've built up over time. HoloTheme also has a dependency on android-support-v4.jar (as does HackerNews).

To get what you need, run these commands from a shell:

git clone https://github.com/bishopmatthew/HackerNews.git
cd HackerNews/libs
git clone https://github.com/bishopmatthew/HoloTheme.git
IntelliJ

In IntelliJ, add HoloTheme as a module and create a module dependency from HackerNews on HoloTheme. Then create a library out of the 6 jars, and add it as a compile dependency to HackerNews and a provided dependency to HoloTheme.

Eclipse

I haven't used Eclipse in a while, but you should be able to add HoloTheme as a library project. Then add the 6 jars to the build path of HackerNews if it doesn't happen automatically. You may also have to copy android-support-v4 from HackerNews/libs into HackerNews/libs/HoloTheme/libs.

Android Studio

If you're using Android Studio:

  • Go into File > Project Structure... and add the HoloTheme repository you cloned earlier as Android Library modules (Modules > New Module > Library Module under the Android section in the New Module dialog).
  • Under the HoloTheme module, add all the jars in the ./libs/ folder as "provided" dependencies.
  • Under the HackerNews module, add all of the jars in the ./libs/ folder as "compile" dependencies.
  • Under the HackerNews module, add the HoloThememodule as dependencies (Using the Module Dependency option when adding them).

Design Overview

I've outlined the design in in this wiki article. This might also be helpful if you're interested in writing Android apps.

How to help

If you tackle any of the issues on the tracker, that would be great! I've added a few enhancements there with a pretty detailed description of what needs to be done.

License

The MIT License (MIT) Copyright (c) 2013 Matthew Bishop

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

The code will be here later today, for now you can use issues for bug reports or feature requests.

Comments
  • Submitting to AskHN claims no connection/fail, results in spamming

    Submitting to AskHN claims no connection/fail, results in spamming

    When submitting a new AskHN post, the process always claims to fail due to connection issues while in fact posting to the board in the background (both with and without WiFi enabled on 4.3, Kernel 3.4.0-1625098 on a SM-N900A). This resulted in me spamming the board over 13 times in a couple hours. :(

    My guess would be the culprit is somewhere around line 265 in src/com/airlocksoftware/hackernews/activity /SubmitActivity.java where neither success or failure is returned due to a perceived connection issue, and the submitting process continues.

    Upon further investigation, is there some submit caching system in place? I haven't hit submit through the app in over 9 hours, yet it is still posting new submissions consistently about every 20 minutes.

    bug 
    opened by yosyp 11
  • Comments not loading

    Comments not loading

    For the last couple of days, I haven't been able to view comments on articles. The articles load fine, as does the main page. In comment view, the error "Couldn't connect to Hacker News" shows.

    I have the same issue on four devices, all running 4.4.2

    opened by JackDunnNZ 10
  • Support for gzip in requests

    Support for gzip in requests

    I use alot the app on my phone and one feature i suggest is to use gzip header on jsoup Connection. Because sometimes, not in home, i use 3g/4g and the app is using too much data in comparison with other apps.

    Thank you.

    enhancement 
    opened by wakim 8
  • Comments show as deleted

    Comments show as deleted

    When opening a thread, all comments appear in what seem to be the correct place but have content and author set to 'deleted'.

    This happens on both my Nexus 4 and Oneplus 3.

    opened by Everlag 7
  • Crash on open on Android 4.4

    Crash on open on Android 4.4

    Stack trace:

    java.lang.NullPointerException
      at com.bugsense.trace.Utils.manageUid(Unknown Source)
      at com.bugsense.trace.BugSenseHandler$1.run(Unknown Source)
      at java.lang.Thread.run(Thread.java:841)
    

    I turned of the bug reporting in the settings and it doesn't seem to make a difference, so I assume it's probably coming from the init originating at SlideoutMenuActivity.java#L65

    This was working fine on 4.3, so perhaps BugSense isn't playing nice with some change in KitKat.

    Also, I've already submitted the crash report via the feedback mechanism in the developer console.

    opened by MarcBernstein 5
  • Cannot login

    Cannot login

    I'm trying to login using my HN credentials and it always returns "Cannot login".

    • I've already checked my credentials against HN site
    • My cellphone internet connection is working ok
    • I've installed version 2.1.6

    Is this happening to someone else?

    bug 
    opened by AlanVerbner 4
  • comments no longer visible

    comments no longer visible

    Nexus 4 android vers 4.4.2. Comments stopped working on 4/23 approx. Can't access comments to articles; number of comments not showing. Clicking an article goes straight to the article instead of comments. Restart no help

    opened by omilu 4
  • Search functionality broken with new HN Search endpoint

    Search functionality broken with new HN Search endpoint

    Hacker News recently published a new search API that we're not connecting to; this issue is a top priority and will require a bug fix release right away.

    https://news.ycombinator.com/item?id=7118496

    bug 
    opened by pkillian 4
  • Comments fail to load

    Comments fail to load

    Using v2.1.8, all comments on all submissions cause a "Couldn't connect to Hacker News" error and a suggestion to check the network connection and try again.

    Logcat shows this:

    02-15 01:01:59.512 W/ResourceType(2219): No package identifier when getting value for resource number 0x00000000
    
    02-15 01:01:59.512 W/PackageManager(2219): Failure retrieving resources for com.airlocksoftware.hackernews: Resource ID #0x0
    

    Any idea what might be going wrong? I'm running the ParanoidAndroid alpha ROM on hammerhead (android 5.0.2). As far as I'm aware this has only recent become a problem.

    opened by lol768 3
  • Lower level logging for debugging purposes

    Lower level logging for debugging purposes

    Including Log.d() calls that include the activity's name, a brief message about what method is being called, and possible state information would be incredibly beneficial for debugging. I'll add more and more logging statements as I go along, and attribute any of them that aren't affiliated with other issues to this one.

    opened by pkillian 3
  • Rotating the screen causes the embedded browser to refresh

    Rotating the screen causes the embedded browser to refresh

    When I visit an article through the app and rotate my screen, the page refreshes (which can cause quite a bit of delay sometimes). The real annoyance with this is that if I look at an article and then click on a link, causing a rotate event will reload first page (that is, the page linked to from HN) is what's loaded, instead of the one I was just on.

    Really great job on this app, though. It's a pleasure to use!

    opened by ucarion 3
  • Set size on icons in share menu

    Set size on icons in share menu

    The icons in the custom share menu occasionally vary widely in size, bigger or smaller. Consider fixing the size of the icon in the share menu.

    Thanks for the app.

    opened by jasco 0
  • Replies not working?

    Replies not working?

    I don't see a link to submit top level replies to a sorry, and clicking the link to reply to a comment does nothing.

    Using Android 7.1.1 (LineageOS 14.1) ROM

    opened by philbradley 0
  • hackernews

    hackernews

    hello i want some help please, i have the hackernews android application project and i want to ask about it, how can i import the DatabaseUtils to project to solve errors in the code ?? i have imported HoloTheme successfully , is there any library or pckage i have to import too?

    opened by dimadodo 1
  • upvoting doesn't seem to perform the action

    upvoting doesn't seem to perform the action

    Whenever I cast an upvote to a story it does seem to mark it as upvoted, but if I refresh or change screen (from article to main or viceversa) the upvote mark disappears and indeed is not registered on the original web.

    This happens both upvoting from the comments screen or from the main screen.

    opened by Willyfrog 1
  • Feature: Support bookmarking an article for reading later

    Feature: Support bookmarking an article for reading later

    Yeah, I know feature requests are more of a noise than signal. But wouldn't it be nice to mark an article to be read later. Might be as simple as a bookmark within the app or an integration with Pocket.

    Out of all apps I've got on my phone, this one needs the bookmarking feature the most. What do you think?

    If it makes sense / already on the roadmap, I'd be very happy to pull a request :-)

    opened by joelewis 0
Releases(2.1.3)
Owner
Matthew Bishop
Matthew Bishop
Hacker News Android App - Made with Kotlin

HackerNewsApp Hacker News Android App - Made with Kotlin Simple app that request, the latests HackerNews posts and allows to delete items from the cli

Fernando Herrera 1 Dec 8, 2021
Android News App built in kotlin with implementation of MVVM architecture, android navigation components and retrofit. Displays news to users allowing them to share and save news.

News-App Android news app built in kotlin that fetches news data from news api with Retrofit and displays news to users. This App follow MVVM architec

Raj Manjrekar 16 Dec 29, 2022
A news app made using android studio in Java with features like favourite news, Location detector for local news, and especially made with HUAWEI APIs

HuaweiGlobalNewsApp A news app made using android studio in Java with features like favourite news, Location detector for local news, and especially m

Christian Imanuel Hadiwidjaja 1 Oct 30, 2021
News-App - A news app Which displays news with the help of JSON data

News-App This is a news app Which displays news with the help of JSON data

Lalith Sharma 0 Feb 16, 2022
A News Application Shows Breaking News of the Country with a feature to save News for future Use.

A News Application Shows Breaking News of the Country with a feature to save News for future Use.You can search news on any topic.Used all latest stuffs in android like Navigation Component, MVVM Architecture, Retrofit, Room DataBase, Kotlin Corutines etc

Aman Bhatt 2 Oct 20, 2022
This is a News Application for android mobiles, fetching news through Guardian API.

News-In-Hand This is a NEWS FEED APP which gives a user regularly-updated news from the Internet. To achieve this, I use the Guardian API. This is a w

Bhramar Virmani 1 Nov 5, 2021
NewsFeedApp - An android news-feed-app which shows latest news of various sources

NewsFeedApp An android news-feed-app which shows latest news of various sources

Srihitha Tadiparthi 4 Aug 8, 2022
Newesy is news app which uses NewsAPI to fetch news.

Newesy is news app which uses NewsAPI to fetch news.The main aim of this app was to learn Modern Android Architecture (MVVM).It uses MVVM,Kotlin-coroutines,Room,ViewModal,Retrofit,GSON and Navigation graph

SHANTANU RATHOD 7 Oct 29, 2022
The News App has been carried out within the framework of the MVVM architecture, information about news is obtained by consulting an API, it is built usisng Jetpack Copose, Coroutines, Dependency Injection with Hilt and Retrofit

Journalist The News App consists of an application that displays the latest news from EEUU from an API that provides official and updated information.

null 0 Nov 3, 2021
Twire is an alternative and open source Twitch client for Android

Twire This is a fork of the Pocket Plays for Twitch Android application. More information in this issue. Twire is an open source, ad-free Twitch brows

Twire 749 Jan 2, 2023
Free and Open Source, full-featured torrent client for Android

Free and Open Source, full-featured torrent client for Android

Yaroslav Pronin 1.3k Jan 8, 2023
A modular and portable open source XMPP client library written in Java for Android and Java (SE) VMs

Smack About Smack is an open-source, highly modular, easy to use, XMPP client library written in Java for Java SE compatible JVMs and Android. Being a

Ignite Realtime 2.3k Dec 28, 2022
A modular and portable open source XMPP client library written in Java for Android and Java (SE) VMs

Smack About Smack is an open-source, highly modular, easy to use, XMPP client library written in Java for Java SE compatible JVMs and Android. Being a

Ignite Realtime 2.3k Dec 21, 2021
📱:newspaper: Android client for the Nextcloud news/feed reader app

Nextcloud News Reader – Android App The Nextcloud News Reader Android App is under AGPLv3 License terms. Bugs and enhancements can be reported under:

Nextcloud 589 Dec 31, 2022
📱:newspaper: Android client for the Nextcloud news/feed reader app

Nextcloud News Reader – Android App The Nextcloud News Reader Android App is under AGPLv3 License terms. Bugs and enhancements can be reported under:

Nextcloud 591 Jan 8, 2023
Mobile client for official Nextcloud News App written as Kotlin Multiplatform Project

Newsout Android and iOS mobile client for Nextcloud news App. The Android client is already available to download in the Play Store. F-Droid and Apple

Simon Schubert 118 Oct 3, 2022
this is a news to the client

QuickNews This is a news client, similar to netease, news headlines Set up(eclipse) QuickNews is a run project and vitamio is a library project. Downl

null 883 Dec 7, 2022
Ride-Sharing Uber Lyft Android App - Learn to build a ride-sharing Android Taxi Clone App like Uber, Lyft - Open-Source Project By MindOrks

Ride-Sharing Uber Lyft Android App - Learn to build a ride-sharing Android Taxi Clone App like Uber, Lyft - Open-Source Project By MindOrks

MindOrks 1.2k Dec 29, 2022
An Open-Source repository that contains all the Android Dev and Kotlin concepts and several projects on android ranging in difficulty making this repo completely beginner-friendly.

An Open-Source repository that contains all the Android Dev and Kotlin concepts and several projects on android ranging in difficulty making this repo completely beginner-friendly. The main aim of this repository is to help students who are learning Android Development or preparing for an Android Developer role-based job.

Mimo Patra 15 Dec 29, 2022