Browse files

show changes

  • Loading branch information...
1 parent 5a5ca5e commit 17b2603c2b10c5368fdbe959260080e4b4885ab1 @jrudolph committed May 5, 2009
Showing with 36 additions and 0 deletions.
  1. +11 −0 assets/v0.2.0
  2. +25 −0 src/net/virtualvoid/android/browser/Home.java
View
11 assets/v0.2.0
@@ -0,0 +1,11 @@
+<b>Grouping</b> of items
+Set history size to 25 elements
+Show <b>directory contents</b>
+Show elements of <b>Iterable</b>
+More intelligent stringification
+Show canonical class name
+Show 'Installed Packages' in <b>PackageManager</b>
+Center drawables
+Fit NinePatchDrawables instead of centering
+New <b>Home</b> start object featuring system icons and package manager, accessible via Menu
+
View
25 src/net/virtualvoid/android/browser/Home.java
@@ -1,6 +1,13 @@
package net.virtualvoid.android.browser;
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
import java.lang.reflect.Field;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Map;
import android.content.pm.PackageManager;
import android.graphics.drawable.Drawable;
@@ -49,4 +56,22 @@ public PackageManager getPackageManager(){
public Author getAuthor(){
return new Author(this);
}
+ private String[]linesOf(InputStream is) throws IOException{
+ ArrayList<String> res = new ArrayList<String>();
+ BufferedReader br = new BufferedReader(new InputStreamReader(is));
+ while(br.ready()){
+ String line = br.readLine().trim();
+ if (line.length()>0)
+ res.add(line);
+ }
+ is.close();
+ return res.toArray(new String[res.size()]);
+ }
+ private final static String[]versions = {"v0.2.0"};
+ public Map<String,String[]> getChanges() throws IOException{
+ Map<String,String[]> res = new HashMap<String, String[]>();
+ for (String v:versions)
+ res.put(v, linesOf(application.getAssets().open("v0.2.0")));
+ return res;
+ }
}

0 comments on commit 17b2603

Please sign in to comment.