summaryrefslogtreecommitdiff
path: root/data/iphone-java/HelloJava.app
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-03-01 19:09:41 +0000
committerJay Freeman <saurik@saurik.com>2008-03-01 19:09:41 +0000
commit70d383934e6a4867682f5ef96f948b234fecd11e (patch)
tree8488303906148d56a3649c12057f3a66d149a1bf /data/iphone-java/HelloJava.app
parent83c66db3e95cdbb6b86893a64b7be0a0ba1ace23 (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/HelloJava.app')
-rw-r--r--data/iphone-java/HelloJava.app/HelloJava.java4
1 files changed, 2 insertions, 2 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());