diff options
author | Jay Freeman <saurik@saurik.com> | 2008-07-23 01:44:11 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-07-23 01:44:11 +0000 |
commit | 4f14d1d836ed5b69e85f77a49f8dd624793a4c2a (patch) | |
tree | a3fbd551b261db0d5d30f64968f6053ec64bfc97 | |
parent | 1cf9bd7e9a197f68540b832beb72075bf8431e1a (diff) |
Upgraded iPhone/Java to fully work on 2.0.
git-svn-id: http://svn.telesphoreo.org/trunk@380 514c082c-b64e-11dc-b46d-3d985efe055d
-rw-r--r-- | data/iphone-java/HelloJava.app/HelloJava.java | 8 | ||||
-rw-r--r-- | data/iphone-java/_metadata/version | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/data/iphone-java/HelloJava.app/HelloJava.java b/data/iphone-java/HelloJava.app/HelloJava.java index 4face9dd7..08f4c70db 100644 --- a/data/iphone-java/HelloJava.app/HelloJava.java +++ b/data/iphone-java/HelloJava.app/HelloJava.java @@ -81,6 +81,7 @@ private ArrayList<Section> sections_; @Message public void applicationDidFinishLaunching$(Object unused) throws Exception { + System.out.println("work"); contacts_ = new ArrayList<Contact>(); sections_ = new ArrayList<Section>(); @@ -95,7 +96,7 @@ private ArrayList<Section> sections_; } finally { st.close(); } } finally { ab.close(); } - CGRect outer = UIHardware.fullScreenApplicationContentRect(); + CGRect outer = UIHardware.$fullScreenApplicationContentRect(); window = new UIWindow().initWithContentRect$(outer); window.orderFront$(this); @@ -103,7 +104,7 @@ private ArrayList<Section> sections_; window._setHidden$(NO); CGRect inner = window.bounds(); - CGSize navsize = UINavigationBar.defaultSize(); + CGSize navsize = UINavigationBar.$defaultSize(); CGRect navrect = new CGRect(0, 0, inner.size.width, navsize.height); UIView view = new UIView().initWithFrame$(inner); @@ -144,13 +145,14 @@ private ArrayList<Section> sections_; list.setDataSource$(this); list.reloadData(); + /* // XXX: this doesn't work the same on 2.0 and I don't want to think about porting it right now AVController controller = new AVController().init(); CharSequence wavfile = (CharSequence) ((NSBundle) NSBundle.mainBundle()).pathForResource$ofType$("start", "wav"); AVItem wavitem = new AVItem().initWithPath$error$(wavfile, null); wavitem.setVolume$(100); controller.setCurrentItem$(wavitem); controller.setCurrentTime$(0); - controller.play$(null); + controller.play$(null);*/ } } diff --git a/data/iphone-java/_metadata/version b/data/iphone-java/_metadata/version index c6756badb..02fa1e488 100644 --- a/data/iphone-java/_metadata/version +++ b/data/iphone-java/_metadata/version @@ -1 +1 @@ -1.0.2357 +1.0.2474 |