Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding readme

  • Loading branch information...
commit a72bf0bf90eaddff66ca80efb3570df13e72a736 1 parent f34ef09
@Kaizhi authored
Showing with 3 additions and 11 deletions.
  1. +3 −0  README.md
  2. +0 −11 src/com/kwei/HN_Sync/Main.java
View
3  README.md
@@ -0,0 +1,3 @@
+# HN Sync
+
+HN Sync is a Hacker News reader android app with sync and offline reading capabilities. Currently under active development.
View
11 src/com/kwei/HN_Sync/Main.java
@@ -75,17 +75,6 @@ public void onClick(View arg0) {
private class FetchHomepageItems extends AsyncTask <Void, Void, String> {
- protected String getASCIIContentFromEntity(HttpEntity entity) throws IllegalStateException, IOException {
- InputStream in = entity.getContent();
- StringBuffer out = new StringBuffer();
- int n = 1;
- while (n > 0) {
- byte[] b = new byte[4096];
- n = in.read(b);
- if (n > 0) out.append(new String(b, 0, n));
- }
- return out.toString();
- }
//"http://hndroidapi.appspot.com/news/format/json/page/?appid=HN_Sync"
@Override
protected String doInBackground(Void... params) {
Please sign in to comment.
Something went wrong with that request. Please try again.