diff options
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 |