diff options
author | Jay Freeman <saurik@saurik.com> | 2008-03-01 19:09:41 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-03-01 19:09:41 +0000 |
commit | 70d383934e6a4867682f5ef96f948b234fecd11e (patch) | |
tree | 8488303906148d56a3649c12057f3a66d149a1bf /data/iphone-java | |
parent | 83c66db3e95cdbb6b86893a64b7be0a0ba1ace23 (diff) |
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
Diffstat (limited to 'data/iphone-java')
-rw-r--r-- | data/iphone-java/HelloJava.app/HelloJava.java | 4 | ||||
-rw-r--r-- | data/iphone-java/HelloScript.app/HelloScript.js | 2 | ||||
-rw-r--r-- | data/iphone-java/_metadata/version | 2 |
3 files changed, 4 insertions, 4 deletions
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<Section> sections_ = new ArrayList<Section>(); 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<Section> sections_ = new ArrayList<Section>(); 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()); diff --git a/data/iphone-java/HelloScript.app/HelloScript.js b/data/iphone-java/HelloScript.app/HelloScript.js index 976868ec2..18d45240a 100644 --- a/data/iphone-java/HelloScript.app/HelloScript.js +++ b/data/iphone-java/HelloScript.app/HelloScript.js @@ -5,7 +5,7 @@ var contacts = []; var sections = []; var ab = new sql.Database(); -ab.open("/var/root/Library/AddressBook/AddressBook.sqlitedb", 0666); try { +ab.open(application.userHomeDirectory().toString() + "/Library/AddressBook/AddressBook.sqlitedb", 0666); try { var st = ab.prepare("select first, last from ABPerson where first is not null order by first"); try { while (st.step()) contacts.push({ diff --git a/data/iphone-java/_metadata/version b/data/iphone-java/_metadata/version index 6d4f3b8cc..d0f8e9054 100644 --- a/data/iphone-java/_metadata/version +++ b/data/iphone-java/_metadata/version @@ -1 +1 @@ -1.0.2274 +1.0.2334 |