Code Monkey home page Code Monkey logo

hn-android's People

Contributors

a-deluna avatar averageapps avatar ceggert avatar clancychilds avatar cwilson avatar gliptak avatar maltzj avatar manmal avatar mparramont avatar noloman avatar peshkira avatar tbroadley avatar vikas0380 avatar vrischmann 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  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  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

hn-android's Issues

Rendering artefacts

Whenever I view an article within HN, while the page is loading, I see the following artefacts:

screenshot_2013-09-04-06-10-44

As soon as the page is finished loading, the artefacts disappear.

I guess both HN and Chrome are using the same rendering engine. However, I do not see the artefacts in Chrome.

Any idea what might be causing this?

Page Title

From Sam Charrington:

What I'm finding is that when I share an item from the internal browser's share menu, the receiving app isn't properly getting the page title. The specific use case I'm concerned with is sharing via the Buffer app, but the post title doesn't seem to be prepopulated when sharing via Twitter or Facebook either.

Orientation changes lead to activity restarting on API 13+

(Assuming this is not intended behavior.) Activities are restarted when changing device orientation on newer Android versions. #27 does not prevent this. It is probably caused by the screenSize configChange, which is also called on rotation.

You could probably fix this by easily adding "screenSize" to all the android:configChanges entries in AndroidManifest.xml:

android:configChanges="keyboardHidden|orientation|screenSize"

See http://stackoverflow.com/a/11631017 for further info.

I could not test this myself with your source because of various unrelated build errors I currently can´t fix, but with other projects, this worked well.

Why only load one set of extra articles?

Why is loading more articles only limited to just one round of articles? Unless there is a good reason the user should be able to load more articles as long as he/she wants.

sharing: "Share Article URL" is attached to share data as title

Disclaimer: I am not an Android developer, so apologies for any misguided notions about how sharing works.

I'm seeing this issue when sharing from hn-android to pindroid (a free pinboard.in client). When sharing from hn-android - and only hn-android - the "title" field in pindroid is populated with "Share Article URL". From other apps, pindroid is able to populate the title field with the content of the page's title tag.

I would expect hn-android to either pass the title tag's content or pass nothing (to allow the shared-to app to detect a no-title condition and fetch on its own, if that's how it works).

Comments and feed not loading

Much like the title says, neither comments nor the list of articles are reloading. Interestingly the refresh option is just spinning and is not immediately stopping (the latter would suggest a parse error or something similar). Articles still load fine.

CommentsAdapter should be its own class

The CommentsAdapter class probably shouldn't be living in the CommentsActivity, especially as the latter handles more responsibility. It will be a little bit of a hassle because of the interactions with how the MenuListAdapter works. But it'll be worth the effort in cleanup I think (especially if both of them can go into a new file).

Is comment loading in CommentActivity Racing?

So I'm looking over the code in CommentsActivity while trying to figure out how to fix #46 and I ran across this question. It looks like retrieving comments is a racing operation because the application makes a call to disk and then attaches itself to any preexisting request for new comments. Is there any safeguard to protect against the network operation completing before the disk operation, and therefore having the cached comments appear instead of the latest comments?

Added orientation change block option

Sometimes when I read the feed list while laying on the bed on a side, the phone is rotated 90 degrees, and thus the orientation rotates automatically to be landscape; it's useless since I'm already sideways, so I can't read the news. It'd be great to have an option that would prevent the app to do so.

Highlight new comments since last visit

It'd be nice if the app kept track of which comments have been seen, and highlighted the new ones when visiting the comments again. An example of this is when using the hckrnews.com Chrome extension plugin:

screenshot

Feature Request : Prefetch and better cache

This is the best HN Android app there is. It would be awesome if it also prefetched comments and stories so that when you click on something in the app, it is near instantaneous. To get around HN rate limits, perhaps a server can proxy the requests (I'd be happy to donate this server).

Dark theme?

Is it possible to get a dark theme for those of that prefer it?

Preferably a gradient screen (LCD displays) and a true black screen (AMOLED displays).

Upvoting bug

I ran into a bug earlier today which doesn't seem to want to reproduce itself. The steps for it are:

Go to a post, upvote a comment in it
Back out of the post
Go back to the post, try to upvote the same comment
See "upvote" instead of "already upvoted by you"

I've looked a little bit into the code to find this and it looks like it might be an issue with how the comments are cached. The app might not be caching whether the user has already voted on a comment or not. I'll investigate further when I get a chance.

should sharing from the comments view send the HN comments page URL?

In other HN readers, I've found it really useful to be able to share either the article URL or the comments URL depending on context. The comments URL is a handy shared item because the HN comments page always links to the article URL. Thus, if the HN comments turn out to be more useful than the article, it's nice to share/bookmark those instead of the article itself.

"Endless" browsing.

It'd be nice if when you hit the bottom of a list, it automatically got the next page of results rather than requiring the user to hit the "More" button.

Crashes when loading many comments

The app seems to crash on posts with a large number of comments. I can't tell if it's the high number of comments causing the crash, or a higher probability of the real cause of the crash in posts with many comments. The latest to crash is from a post with over 300 comments.

Unable to upvote

Right now the app prevents me from upvoting anything since it incorrectly thinks it's already been upvoted on.

Note the timestamps: "Already voted on" is 45 minutes ago, while the last screenshot shows that I haven't voted on the comment from 1hr ago.

2013-11-25 20 29 29
2013-11-25 20 29 38
screenshot from 2013-11-25 14 44 30

Issue switching between page and comments.

If you start playing a YouTube video and switch to comments while it is playing, the playback continues in the background. Audio from the video can be heard to prove this. If you then return to the page, a new instance of it is created and there is no way to stop the video without killing the app.

Unable to login with certain characters in password

At least one of these characters causes "An unknown error occurred" that prevents logging in:

{".+?)&~

After I made my password alphanumeric, I was able to log in.

Logging in on the HN website was possible with and without these characters.

"More" doesn't actually give you more articles

When clicking "more", the app does the whole "hey I'm loading" shindig and then just goes away. I think this because HN changed their first link to just <a href="news2"> and the parser is currently hunting for a leading slash. I fixed this up in #58, but I'll submit a separate pull request for just that one change to make merging easier.

Visiting link through comments ignores browser settings

Thanks for the latest update to give us an option of different reading settings.

I have it set to use system browser, and it works fine when visiting a link from the list of articles. However going from list -> comments -> article defaults back to using the in app browser.

Could you please update that link to obey browser settings as well? Thanks.

Crashes when reload button is pressed multiple times

On the main screen or comments screen, repeatedly tap the reload button and Android will report that the app has stopped. This does not effect article screens. Tested on version 1.9 from the F-Droid repository on a Nexus 4 running Android 4.2.2.

Precompiled APK

I dont use google play. Is there any way I can get a precompiled apk?

Comments with > in front of them aren't rendered properly

If I have a comment like this

And I follow it with some text here.

Then the line break between the careted text and the non-careted text will not show up. I have a feeling that this might be because Html.fromHtml is derping because of the leading caret. However, I'm not totally sure how to fix it.

Polls don't show comments

This is probably related to the change I made to show ask-hn text. Weirdly it doesn't stay in "loading" state, which would indicate an error. Instead it just shows nothing. I've got midterms and a feature for the Github app that I'm working on right now, but this is next on my list after that.

article/comment button at the top of the article screen

In many user interfaces, the "view switching" buttons indicate the state the UI will be switched into. Currently this seems to be different in hn-android, where the button to switch into Comments is titled Article, and vice versa. Thanks

android:allowBackup is explicitly set to "false'' in the Manifest

Is there a particular security reason for this over the convenience of easier transfer from old to new device ?

Android offers a nifty backup&restore functionality since 4.x with 'adb backup' and Koushik Dutta has made a great frontend app for it called Helium (https://play.google.com/store/apps/details?id=com.koushikdutta.backup).

In the whole list of 150 apps installed on my device the only 2 ones are :

  • Google Authenticator (reasonable why the adb backup is disabled)
  • HN Android.

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.