Giter Club home page Giter Club logo

reddit-is-fun's Introduction

reddit is fun

Android app to read reddit.com. Original code by Andrew Shu (talklittle). Licensed under GPLv3.

Pledgie Badge

Android Market QR Codes

Free

reddit is fun QR Code

$1.99 Widgets version (not GPL)

reddit is fun donation QR Code

Contributors

  • ulfada
  • choofins
  • jc4p
  • albertb
  • samongoose
  • fernandotakai
  • billyf
  • jaspervdj
  • kostmo
  • armooo
  • fberger
  • faux
  • ddrboxman
  • jk3us
  • crabpot8
  • andyvincent
  • wac-
  • pakesson
  • macieklen
  • yuri-danilchenko
  • bsimic0001
  • bmwracer0
  • candrews
  • teen-
  • sztomi
  • joe0185
  • gebner
  • kushou
  • haroldb
  • megamark16
  • wesleywiser
  • blazeroni

reddit-is-fun's People

Contributors

albertb avatar andyvincent avatar armooo avatar billyf avatar blazeroni avatar bmwracer0 avatar bsimic0001 avatar candrews avatar ddrboxman avatar faux avatar fberger avatar fernandotakai avatar fmichea avatar gebner avatar jc4p avatar kostmo avatar macieklen avatar pakesson avatar shawn-simon avatar talklittle avatar wac- avatar wesleywiser avatar yuri-danilchenko 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

reddit-is-fun's Issues

Broken markdown lists. Comments cut off.

Hello,

I really enjoy this application, but I noticed an error with the way some posts are rendered.

Check out this post:

http://reddit.com/r/WeAreTheMusicMakers/comments/a7wmz/heres_a_picture_of_me_in_my_studio_anyone_else/

When viewed from within 'reddit is fun', many posts with links are truncated in strange places -- notably, one by user locutor and one by user robhutten.

I've only just now noticed this phenomenon, but I can recall many other instances where people had links in their posts and referred to something like "the third link", which only confused me.

Any thoughts? Thanks for writing this app, by the way -- it's a real lifesaver. The m.reddit.com site was my previous way to check reddit on the go.

Labeling OP

I do not currently label the OP, mods, admins in comments list. I don't know if the info for mods/admins is in JSON. Of course the OP can be found by looking at the OP ThreadInfo.

I wasn't sure about this though, since I know some subreddits can disable it (and maybe for good reason).

Related: /r/TRUST blacks out everyone's name by default. How to handle stuff like that?

Refactoring

as of version 0.8.6 the app is 500kb. I think lots of code can be refactored to reduce code size by almost 50%

reply error after rotation

How to recreate:
-start up a reply

-rotate screen after entering reply

-attempt to submit

Upon submitting, I get a Toast error and then when I try to cancel the reply, the program force closes.

Find on page

You should be able to do a find on the current comments list and jump to the next comment containing that character string.

View parent comment

Long threads can get hard to follow, in a browser one can click the "Parent" button on a comment to see the initial comment that it was a reply to. A similar ability in this app would be extremely handy.

Trackball & "next 25" button

using trackball you cannot reach the <next 25> button. Instead it simply highlights the field as if it was another story. Eg.

[Story 23]
[Story 24]
[..(next 25)..]

highlights the '[....]' section beneath the button

Ability to edit subreddit list from app

Currently it is only possible to edit your subreddit list using the browser by editing your "my reddits" list. It would be convenient to be able to modify the list directly in the app. This requires an activity (either existing PickSubredditActivity or a new one) to use JSON instead of current HTML scraping, so that we can determine the subreddit id36 to pass to API via POST.

Alternatively, there could be a separate offline data store, and the list that the user sees is the union of both lists.

Light theme broken on Droid

Apparently people have issues with light theme on Verizon Droid phone. I think that means android version 2.0.

So, need to check compatibility with different screen sizes.

Inflexible themes

Right now the current theme is checked in many places in the code, which assume there are only a "light" and "dark" theme. I'd prefer if it supported a variable number of themes. And maybe themes should be addable (downloadable?) and removable.

Browser CPU usage

"""Hello I've been using your app on my htc magic for a while and have recently upgraded to android 1.6. Since then I have been having problems with increased battery consumption which according to my the battery use monitor is caused by the browser app. The strange thing is that it can occur even when the browser isn't active. I have investigated the problem and discovered that it is connected to 'Reddit is fun'. I can reproduce it by first starting the browser app, starting RIF, opening a link in RIF which opens in a new browser window, then closing the link with the Back key. This causes the browser app running in the background to use a steady 10 - 15% of the CPU which really sucks the juice out of my battery. It only occurs when the browser is already running in the background prior to opening the link in RIF. I am running the custom donut rom from Amon-RA and this could well be the source of the bug. If you should have a chance to try it out on another donut build, I would be most grateful to hear the result."""

Sending PMs

Need ability to send PMs not just replying

Move Inbox to Main Menu.

Currently the six options on the menu include "sort by." I could be mistaken, but I can't imagine anyone re-sorting more often than they check their inbox. It seems a good design choice to move the sort button to the "more" menu, so that the more commonly used inbox can be a top-level choice.

Force closes using cyanogen and apps2sd

A number of users have been reporting force closes when using CyanogenMod and apps2sd, usually when returning to the Activity from another activity (viewing a link in browser then returning)

Unfortunately I don't use cyanogen or apps2sd and can't reproduce the bug. Would anyone mind checking this out please? :)

I wonder if running TaskKiller to free up some memory would help?

EDIT: Ok, I'm going to try switchrom.sh (http://forum.xda-developers.com/showpost.php?p=4209412) and debug it myself...

EDIT2: Got cyanogen installed, with its automatic apps2sd stuff. I have now indeed encountered force closes that I didn't encounter with stock rom. They mostly happen when rotating the screen. Happened again when rotating screen with login dialog onscreen. Also I get a weird bug where it doesn't load the threads list correctly the first time, and I have to refresh to get anything to show up.

Reddit mail prompt

There's a problem with redditmail where it prompts me to read "new" mail that I've already read.

Sort by "best"

Reddit added a new sort-by option called "best"
For this app, would need to modify menu xmls, and corresponding code.

Incorrectly loading cached comments

Sometimes I'll be browsing in reddit, I'll click on a link, go to comments, and comments from my previous session will load. I'm trying to recreate it, I believe it has to do with sleeping the phone while reading comments.

Hardware: Motorola Droid

I downloaded the source code, fixing bugs are a great way of exploring the code repository :)

Clicking the OP when there is selftext

Clicking OP doesn't bring up menu when there is selftext. This is caused by broken Android WebView behavior. Maybe I should use ugly TextView, and have it look better when markdown is eventually better implemented?

Hide Threads

Need the ability to hide an article, by pressing a button and/or swiping the article in the article list. Should integrate with the reddit 'hide' feature

Additionally, it would be nice to have the option to automatically hide read articles and show hidden posts.

Registration

Something that has been missing all along is the registration function. This should be straightforward. Registration uses a CAPTCHA but the code for CAPTCHAs already exists in SubmitLinkActivity.

User history page

Need to show user history which can consist of both threads and comments.

Search

Search is not yet implemented.

Batch download of content for offline viewing

I want to be able to batch download and cache the JSON for threads lists and comments lists. And ability to optionally sync an offline JSON with the current updated one.

Things to consider:

  • You can grab at most 200 comments in one go. To load more comments you need to branch off of the "more" info in the JSON file.
  • The user needs to have an estimate of how much space the downloaded content will take, both for SD card capacity checking and for pay-per-bandwidth cell plans.
  • Probably need to use specialized Activity to view cached stuff. Probably shouldn't be allowed to reply to cached content (since you might be saying something redundant that someone else has said). Voting should possibly be allowed.

API CHANGE: "invalid subreddit"

getting "invalid subreddit" for some subreddits like /r/gaming and /r/funny, excluding frontpage and bestof.

I am pretty sure it's an API change with maybe the JSON object under "oembed" key.

Along with this there does seem to be some new cool info for threads which can be incorporated in the future.

Reporting comments and threads

I've implemented the ability to report comments into my fork of this app but someone still needs to implement the ability to report an entire thread.

Intercepting HTTP URIs to www.reddit.com

It's possible to have an intent-filter for HTTP URIs based on domain. All that is needed would be some pattern matching to direct the parsed URL to the correct Activity. (RedditIsFun for link to subreddit, RedditCommentsListActivity for link to thread, MoreChildrenActivity for link to a comment)

Markdown links

Markdown needs to be at least partially implemented. For hyperlinks, bold, italics at least. (Not quite sure how hyperlinks would be done, since if they don't appear in the string, we might need to change behavior away from Android built-in "autoLink" feature.)

I'm not sure if using SpannableStringBuilder on every comment would be too slow. From comments on the Internet it looks like using WebViews for comments would definitely be too slow. So leave as TextViews for sure.

EDIT: Yes, markdown is SLOW for long comments (during JSON parse phase)
EDIT2: It's now acceptable speed using dk.brics.automaton

"show more comments" broken in 0.8.0

Oops I broke show more comments. Need to implement multi-file cache for CommentsListActivity since you can have a stack of them.

idea: name them comments00.dat, comments01.dat, etc.
and when you load a CommentsListActivity it always loads the highest one. then pressing Back button deletes the highest one.

problem: how do you drop out of the entire stack quickly? using application launcher works?
problem: user enters reddit is fun from a different entrypoint. need to clear entire cache then. what happens to activity stack then?

crashes on cyanogen 4.2.9.1

I have an issue with the app. Whenever I visit a link then press the back button from the browser, I end up on my home screen. I used Taskiller to verify that the process is no longer running after I open the browser, but before I hit the back button.

This started happening a week or two ago. I'm not sure if it happened after an upgrade of the app.

I'm running Cyanogenmod 4.2.9.1
I have very few other processes running, and 28MB of RAM free before running Reddit is Fun.
I have a G1.

I did some more testing. After a reboot the app worked fine. But then the problem came back again later in the day. I'm running Reddit is Fun (RIF), and then I open Taskiller from the persistent notification. I only ran Taskiller, and via the notification, because I wanted to launch another processes without having to go back to the home screen, or click anything in RIF. Just so I could see what happened in this case. RIF is crashing as soon as another activity begins. Apparently from an "Activity pause timeout". I took a look at the Android log and this is what I found.

01-07 14:15:56.590 W/ActivityManager( 141): startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { cmp=com.tni.TasKiller/.TasKiller }
01-07 14:15:57.140 W/ActivityManager( 141): Activity pause timeout for HistoryRecord{43d26f20 com.andrewshu.android.reddit/.RedditIsFun}
01-07 14:15:57.400 W/Resources( 2097): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f060004}
01-07 14:15:57.630 D/dalvikvm( 2097): GC freed 8826 objects / 489992 bytes in 153ms
01-07 14:15:57.740 I/ActivityManager( 141): Process com.andrewshu.android.reddit (pid 2188) has died.
01-07 14:15:57.740 I/ActivityManager( 141): Low Memory: No more background processes.
01-07 14:15:57.740 I/WindowManager( 141): WIN DEATH: Window{43c2dd80 com.andrewshu.android.reddit/com.andrewshu.android.reddit.RedditIsFun paused=false}
01-07 14:15:58.340 W/InputManagerService( 141): Got RemoteException sending setActive(false) notification to pid 2188 uid 10053
01-07 14:15:58.420 I/ActivityManager( 141): Displayed activity com.tni.TasKiller/.TasKiller: 1281 ms (total 1281 ms)

Incorrect progress bar for threads

  1. I have Reddit set to show 100 entries on the home page instead of 25. Your app correctly downloads all 100 entries, but the progress meter only goes to 25. It would be ideal if it would show the right progress.

Remember which page of results

Hi,

Love the app, but it needs some caching or something. Returning from a link or comments reloads the first page of results instead of the page I was on. Also rotating the screen reloads the first page when I was viewing one further in.

Keep up the good work!

edit/delete post

It would be nice to be able to edit and delete posts and comments from within the app.

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.