summaryrefslogtreecommitdiff
path: root/data/iphone-java/HelloJava.app
diff options
context:
space:
mode:
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());