From 70d383934e6a4867682f5ef96f948b234fecd11e Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Sat, 1 Mar 2008 19:09:41 +0000 Subject: Fixed an incredibly stupid 1.1.3 issue in the Java examples. git-svn-id: http://svn.telesphoreo.org/trunk@131 514c082c-b64e-11dc-b46d-3d985efe055d --- data/iphone-java/HelloJava.app/HelloJava.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/iphone-java/HelloJava.app') diff --git a/data/iphone-java/HelloJava.app/HelloJava.java b/data/iphone-java/HelloJava.app/HelloJava.java index 8b8f7ce37..b33f9b64c 100644 --- a/data/iphone-java/HelloJava.app/HelloJava.java +++ b/data/iphone-java/HelloJava.app/HelloJava.java @@ -51,7 +51,7 @@ private ArrayList
sections_ = new ArrayList
(); throws Exception { SQLite.Database ab = new SQLite.Database(); - ab.open("/var/root/Library/AddressBook/AddressBook.sqlitedb", 0666); try { + ab.open(userHomeDirectory().toString() + "/Library/AddressBook/AddressBook.sqlitedb", 0666); try { SQLite.Stmt st = ab.prepare("select first, last from ABPerson where first is not null order by first"); try { while (st.step()) contacts_.add(new Contact(st.column_string(0), st.column_string(1))); @@ -74,7 +74,7 @@ private ArrayList
sections_ = new ArrayList
(); navbar.setDelegate$(new NSObject() { @Message void navigationBar$buttonClicked$(UINavigationBar navbar, int button) { - java.lang.Runtime.getRuntime().gc(); + navbar.showButtonsWithLeftTitle$rightTitle$leftBack$("I was clicked!", null, YES); } }.init()); -- cgit v1.2.3