You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(29) |
Aug
(75) |
Sep
(32) |
Oct
(147) |
Nov
(31) |
Dec
(49) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(46) |
Feb
(35) |
Mar
(148) |
Apr
(33) |
May
(53) |
Jun
(46) |
Jul
(60) |
Aug
(44) |
Sep
(135) |
Oct
(23) |
Nov
(68) |
Dec
(42) |
2011 |
Jan
(94) |
Feb
(55) |
Mar
(114) |
Apr
(78) |
May
(64) |
Jun
(10) |
Jul
(31) |
Aug
(2) |
Sep
(25) |
Oct
(13) |
Nov
(8) |
Dec
(24) |
2012 |
Jan
(5) |
Feb
(33) |
Mar
(31) |
Apr
(19) |
May
(24) |
Jun
(23) |
Jul
(14) |
Aug
(15) |
Sep
(12) |
Oct
(3) |
Nov
(4) |
Dec
(19) |
2013 |
Jan
(8) |
Feb
(20) |
Mar
(4) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(1) |
Nov
(4) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
(6) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Erez D <ere...@gm...> - 2011-04-03 11:36:44
|
I'm trying to compile xokoban to python via xmlvm (svn trunc r1601) ant ant demos alias xmlvm='java -jar some/path/xmlvm.jar' xmlvm --in=Ball.class --out=/tmp/xokoban --target=python python Ball.py I get the following: erez@black:/tmp/xokoban$ python Ball.py Traceback (most recent call last): File "Ball.py", line 192, in <module> class org_xmlvm_demo_xokoban_Ball(org_xmlvm_demo_xokoban_MovableGamePiece): NameError: name 'org_xmlvm_demo_xokoban_MovableGamePiece' is not defined ( i get the same error using branch vtable) under branch wp7, i fail in 'ant demos' in branch 2phase2 i get: erez@black:/tmp/xokoban$ python Ball.py File "Ball.py", line 196 __locals = range() ^ IndentationError: expected an indented block |
From: Wolfgang K. <wol...@xm...> - 2011-03-29 12:45:18
|
Erez, simply running ant only compiles the XMLVM jar. Demos are not compiled. To compile Xokoban go to the demo/android/xokoban folder and run "ant compile". This will compile Xokoban. Note that you need the Android SDK installed and configured in $XMLVM/properties/local.properties. Compiling Xokoban using the provided ant script will also produce the missing R class. -- Wolfgang On 29.03.11 09:38, Erez D wrote: > thanks for replying, > > I am an N900 user, a goal of mine is to have many more applications > for me and any other N900 users. > As I saw XMLVM can be used to translate android apps to iphone, i > thought i could use XMLVM to translate android apps to the N900 as well. > The N900 runs on a pseudo debian system, so making a native c+gtk or > c+qt app will probably suffice. > > as a first step, i wanted to see if i could translate an application ( > and took xokoban as an example ) to run under ubuntu, and later the N900. > > I read the XMLVM documentation, I got the idea, but some > examples/tutorials could have helped me. > > > i did 'ant clean' and then 'ant' and everything was built ok, > then i did: > cd xmlvm/trunk/xmlvm/demo/android/xokoban/src/org/xmlvm/demo/xokoban > javac Ball.java > > and got: > > Ball.java:27: cannot find symbol > symbol: class MovableGamePiece > public class Ball extends MovableGamePiece { > ^ > Ball.java:28: cannot find symbol > symbol : class GameView > location: class org.xmlvm.demo.xokoban.Ball > public Ball(GameView view, int tileSize, int x, int y) { > ^ > Ball.java:34: package R does not exist > return R.drawable.ball_20; > ^ > Ball.java:36: package R does not exist > return R.drawable.ball_30; > ^ > Ball.java:38: package R does not exist > return R.drawable.ball_100; > > still need help getting started here. > > > thanks, > erez. > > On Mon, Mar 28, 2011 at 5:59 PM, Paul Poley <bay...@gm... > <mailto:bay...@gm...>> wrote: > > XMLVM will translate Java code to Objective-C or C, but not C++. > This is good though since C++ is an extension of C. > > As you say you are a C++ programmer looking to translate Xokoban > to C++, I'm not sure XMLVM is what you're looking for. I.e. the > idea is to write code in Java & it will work the same running as > Objective-C or C++, but you shouldn't have to look at the > Objective-C or C++ code, barring some exceptions. If you do look > at the generated code, you can easily tell a human didn't write > it, although with some XMLVM knowledge, you can read & understand it. > > That to say, if you are interested in writing C++, XMLVM is > probably not the solution. If however, you are interested in > writing Java, you've come to the right place. > > To answer your question, Java source files are *.java. When you > compile them using "javac", they are converted into *.class. > Those byte code files (think of them in some ways similar to > *.exe) are what the JVM executes in Java proper & what XMLVM uses > to translate to another language. > > So if you are interested in XMLVM, I recommend first acquainting > yourself with Java proper. > > Possibly to get you started though, run "ant clean" first to get > rid of some old files that may be causing 'package R does not exist'. > > Thanks, > Paul > > > On Mon, Mar 28, 2011 at 4:16 AM, Erez D <ere...@gm... > <mailto:ere...@gm...>> wrote: > > I have just checked out xmlvm, and want to use it to compile > android app to c++ > I read the documentation, but still have problems > understanding what to do. > > i have generated dist/xmlvm.jar using ant and openjdk > > BTW, I'm a c++ programmer, with small experiance in java. > > For example, i need help compiling xokoban (from xmlvm demo) > to c++ > 1. according to the docs, xmlvm's input is *.class, but > xokoban files are *.java. do i just use javac to compile > xokoban.java to xokoban.class (this will make java bytcode. is > it ok or dex is needed ? (if so, how do i generate dex ?) ) > 2. trying 'javac Ball.java' from xokoban's directory: i get > many error messages of missing stuff, like 'package R does not > exist'. is this because of the order i am compiling or am i > missing somthing. > > > can someone give me a small tutorials of how to generate c/cpp > from xokoban (ubuntu 10.10 64 bit). > > thanks, > erez. > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology > to meet the > growing manageability and security demands of your customers. > Businesses > are taking advantage of Intel(R) vPro (TM) technology - will > your software > be a part of the solution? Download the Intel(R) Manageability > Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > xmlvm-users mailing list > xml...@li... > <mailto:xml...@li...> > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Erez D <ere...@gm...> - 2011-03-29 07:38:43
|
thanks for replying, I am an N900 user, a goal of mine is to have many more applications for me and any other N900 users. As I saw XMLVM can be used to translate android apps to iphone, i thought i could use XMLVM to translate android apps to the N900 as well. The N900 runs on a pseudo debian system, so making a native c+gtk or c+qt app will probably suffice. as a first step, i wanted to see if i could translate an application ( and took xokoban as an example ) to run under ubuntu, and later the N900. I read the XMLVM documentation, I got the idea, but some examples/tutorials could have helped me. i did 'ant clean' and then 'ant' and everything was built ok, then i did: cd xmlvm/trunk/xmlvm/demo/android/xokoban/src/org/xmlvm/demo/xokoban javac Ball.java and got: Ball.java:27: cannot find symbol symbol: class MovableGamePiece public class Ball extends MovableGamePiece { ^ Ball.java:28: cannot find symbol symbol : class GameView location: class org.xmlvm.demo.xokoban.Ball public Ball(GameView view, int tileSize, int x, int y) { ^ Ball.java:34: package R does not exist return R.drawable.ball_20; ^ Ball.java:36: package R does not exist return R.drawable.ball_30; ^ Ball.java:38: package R does not exist return R.drawable.ball_100; still need help getting started here. thanks, erez. On Mon, Mar 28, 2011 at 5:59 PM, Paul Poley <bay...@gm...> wrote: > XMLVM will translate Java code to Objective-C or C, but not C++. This is > good though since C++ is an extension of C. > > As you say you are a C++ programmer looking to translate Xokoban to C++, > I'm not sure XMLVM is what you're looking for. I.e. the idea is to write > code in Java & it will work the same running as Objective-C or C++, but you > shouldn't have to look at the Objective-C or C++ code, barring some > exceptions. If you do look at the generated code, you can easily tell a > human didn't write it, although with some XMLVM knowledge, you can read & > understand it. > > That to say, if you are interested in writing C++, XMLVM is probably not > the solution. If however, you are interested in writing Java, you've come > to the right place. > > To answer your question, Java source files are *.java. When you compile > them using "javac", they are converted into *.class. Those byte code files > (think of them in some ways similar to *.exe) are what the JVM executes in > Java proper & what XMLVM uses to translate to another language. > > So if you are interested in XMLVM, I recommend first acquainting yourself > with Java proper. > > Possibly to get you started though, run "ant clean" first to get rid of > some old files that may be causing 'package R does not exist'. > > Thanks, > Paul > > > On Mon, Mar 28, 2011 at 4:16 AM, Erez D <ere...@gm...> wrote: > >> I have just checked out xmlvm, and want to use it to compile android app >> to c++ >> I read the documentation, but still have problems understanding what to >> do. >> >> i have generated dist/xmlvm.jar using ant and openjdk >> >> BTW, I'm a c++ programmer, with small experiance in java. >> >> For example, i need help compiling xokoban (from xmlvm demo) to c++ >> 1. according to the docs, xmlvm's input is *.class, but xokoban files are >> *.java. do i just use javac to compile xokoban.java to xokoban.class (this >> will make java bytcode. is it ok or dex is needed ? (if so, how do i >> generate dex ?) ) >> 2. trying 'javac Ball.java' from xokoban's directory: i get many error >> messages of missing stuff, like 'package R does not exist'. is this because >> of the order i am compiling or am i missing somthing. >> >> >> can someone give me a small tutorials of how to generate c/cpp from >> xokoban (ubuntu 10.10 64 bit). >> >> thanks, >> erez. >> >> >> ------------------------------------------------------------------------------ >> Enable your software for Intel(R) Active Management Technology to meet the >> growing manageability and security demands of your customers. Businesses >> are taking advantage of Intel(R) vPro (TM) technology - will your software >> be a part of the solution? Download the Intel(R) Manageability Checker >> today! http://p.sf.net/sfu/intel-dev2devmar >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> >> > |
From: John C. <jc...@un...> - 2011-03-29 05:37:18
|
Arno, perhaps it would be a good idea to update sections 1.4.1, 1.4.2, and 2 accordingly? Sections 4.2 and 6.1 may have the same info, but if so, it's not nearly as straightforward in describing the cross-compilation of an Android app for an iPhone target. Once I have it figured out, I would be glad to help update the docs if I could have edit privileges granted to me. Quoted message: ----- From: Arno Puder <arno@pu...> - 2011-03-05 03:20 there is no target android-on-iphone anymore. Please consult the documentation: http://xmlvm.org/documentation/ In particular look at sections 4.2 and 6.1. They describe what you were trying to do. Arno ----- On 3/4/11 11:04 AM, opwoco GbR wrote: > Hi there, > > > I'm try to build an xcode project from a fresh android project. > > > I did the following: > > xmlvm --skeleton=android --out=fwapp-xmlvm --app-name=fwapp > > > xmlvm --in=. --target=android-on-iphone --iphone-app=fwapp --out=ios-fwapp > -- John Comeau <jc...@un...> http://jc.unternet.net/ "A place for everything, and everything all over the place" |
From: Paul P. <bay...@gm...> - 2011-03-28 15:59:42
|
XMLVM will translate Java code to Objective-C or C, but not C++. This is good though since C++ is an extension of C. As you say you are a C++ programmer looking to translate Xokoban to C++, I'm not sure XMLVM is what you're looking for. I.e. the idea is to write code in Java & it will work the same running as Objective-C or C++, but you shouldn't have to look at the Objective-C or C++ code, barring some exceptions. If you do look at the generated code, you can easily tell a human didn't write it, although with some XMLVM knowledge, you can read & understand it. That to say, if you are interested in writing C++, XMLVM is probably not the solution. If however, you are interested in writing Java, you've come to the right place. To answer your question, Java source files are *.java. When you compile them using "javac", they are converted into *.class. Those byte code files (think of them in some ways similar to *.exe) are what the JVM executes in Java proper & what XMLVM uses to translate to another language. So if you are interested in XMLVM, I recommend first acquainting yourself with Java proper. Possibly to get you started though, run "ant clean" first to get rid of some old files that may be causing 'package R does not exist'. Thanks, Paul On Mon, Mar 28, 2011 at 4:16 AM, Erez D <ere...@gm...> wrote: > I have just checked out xmlvm, and want to use it to compile android app to > c++ > I read the documentation, but still have problems understanding what to do. > > i have generated dist/xmlvm.jar using ant and openjdk > > BTW, I'm a c++ programmer, with small experiance in java. > > For example, i need help compiling xokoban (from xmlvm demo) to c++ > 1. according to the docs, xmlvm's input is *.class, but xokoban files are > *.java. do i just use javac to compile xokoban.java to xokoban.class (this > will make java bytcode. is it ok or dex is needed ? (if so, how do i > generate dex ?) ) > 2. trying 'javac Ball.java' from xokoban's directory: i get many error > messages of missing stuff, like 'package R does not exist'. is this because > of the order i am compiling or am i missing somthing. > > > can someone give me a small tutorials of how to generate c/cpp from xokoban > (ubuntu 10.10 64 bit). > > thanks, > erez. > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |
From: Erez D <ere...@gm...> - 2011-03-28 09:17:10
|
I have just checked out xmlvm, and want to use it to compile android app to c++ I read the documentation, but still have problems understanding what to do. i have generated dist/xmlvm.jar using ant and openjdk BTW, I'm a c++ programmer, with small experiance in java. For example, i need help compiling xokoban (from xmlvm demo) to c++ 1. according to the docs, xmlvm's input is *.class, but xokoban files are *.java. do i just use javac to compile xokoban.java to xokoban.class (this will make java bytcode. is it ok or dex is needed ? (if so, how do i generate dex ?) ) 2. trying 'javac Ball.java' from xokoban's directory: i get many error messages of missing stuff, like 'package R does not exist'. is this because of the order i am compiling or am i missing somthing. can someone give me a small tutorials of how to generate c/cpp from xokoban (ubuntu 10.10 64 bit). thanks, erez. |
From: Miggi <mig...@go...> - 2011-03-27 13:01:47
|
Hello Can somebody tell me, why the text is running out of screen? I've a TextView in Android cross-compiled to UITextview in iOS and the text in this TextView runs under iOS out of screen. There's no line break... Thanks for your answer. Miggi |
From: Sascha H. <sa...@xm...> - 2011-03-24 23:23:35
|
Hi Miggi, can you make an update and see, if it now work for you? I am not quite sure if this was indeed an issue with the latest patch as the affected part was unchanged. I added some additional checks so you should now get some warnings instead. Let me know if it works. // Sascha On Thu, Mar 24, 2011 at 4:30 PM, Miggi <mig...@go...> wrote: > Hello > > I got some errors, when I try t migrate an android project. I've > migrated the same project a several times before with success, so I > don't understand what's happend. Can somebody help me? > > Here's the output: > > Exception in thread "main" java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at com.simontuffs.onejar.Boot.run(Boot.java:306) > at com.simontuffs.onejar.Boot.main(Boot.java:159) > Caused by: java.lang.NullPointerException > at org.xmlvm.proc.in.InputProcess.processPhase1(InputProcess.java:113) > at > > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) > at > > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:203) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:157) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) > at org.xmlvm.Main.main(Main.java:53) > ... 6 more > svps-Mac:xmlvm svp$ > > Miggi > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Sascha H. <sa...@gm...> - 2011-03-24 15:40:57
|
Hi Miggi, I submitted a big change earlier today which probably caused your problem. I will take a look at this later, as I am having an appointment right now. You can sync back to a revision before my latest patch in the meantime. On Mar 24, 2011 4:31 PM, "Miggi" <mig...@go...> wrote: > Hello > > I got some errors, when I try t migrate an android project. I've > migrated the same project a several times before with success, so I > don't understand what's happend. Can somebody help me? > > Here's the output: > > Exception in thread "main" java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at com.simontuffs.onejar.Boot.run(Boot.java:306) > at com.simontuffs.onejar.Boot.main(Boot.java:159) > Caused by: java.lang.NullPointerException > at org.xmlvm.proc.in.InputProcess.processPhase1(InputProcess.java:113) > at > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) > at > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:203) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:157) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) > at org.xmlvm.Main.main(Main.java:53) > ... 6 more > svps-Mac:xmlvm svp$ > > Miggi > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Miggi <mig...@go...> - 2011-03-24 15:31:10
|
Hello I got some errors, when I try t migrate an android project. I've migrated the same project a several times before with success, so I don't understand what's happend. Can somebody help me? Here's the output: Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.simontuffs.onejar.Boot.run(Boot.java:306) at com.simontuffs.onejar.Boot.main(Boot.java:159) Caused by: java.lang.NullPointerException at org.xmlvm.proc.in.InputProcess.processPhase1(InputProcess.java:113) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:203) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:157) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) at org.xmlvm.Main.main(Main.java:53) ... 6 more svps-Mac:xmlvm svp$ Miggi |
From: Paul P. <bay...@gm...> - 2011-03-24 15:18:02
|
No, they are not all supported. I recommend delving deeper into how XMLVM works, as your project sounds a bit more complex than a Hello World. For the Obj-C conversion, the API was rewritten by hand in Obj-C, so you are bound to run into many classes that are not yet implemented. And on occasion, you will find classes that weren't implemented exactly the same as its Java counterpart, so you will need to be able to detect that. Fortunately a lot of that will be taken care of with the C backend, but note that there are still some native methods that are (and will be) written by hand. To at least point you in the right direction though, currently UDP is not supported, but some of TCP is, which I had written a while back for the Obj-C backend. Try using java.net.Socket if that is appropriate for your project. Thanks, Paul On Thu, Mar 24, 2011 at 9:45 AM, Christoffer Kristensen < chr...@ya...> wrote: > Hello > Are all the classes in java.net supported? I'm asking because i can't use > java.net.Inetadress, java.net.DatagramSocket and java.net.DatagramPacket. > Or do i need to use some equivalent objc classes instead and what would > those be? > Thank you all again for all your answers and work that you put in to this! > Kind regards > Christoffer > > |
From: Christoffer K. <chr...@ya...> - 2011-03-24 14:46:00
|
HelloAre all the classes in java.net supported? I'm asking because i can't use java.net.Inetadress, java.net.DatagramSocket and java.net.DatagramPacket.Or do i need to use some equivalent objc classes instead and what would those be?Thank you all again for all your answers and work that you put in to this! Kind regardsChristoffer |
From: Arno P. <ar...@pu...> - 2011-03-23 21:40:15
|
your problem has nothing to do with XMLVM. Somehow you are mixing Java 5 and Java 6 (which have different interpretation of the @Override annotation). Arno On 3/23/2011 2:31 PM, Christoffer Kristensen wrote: > Hello xmlvm experts. > > I've re-compiled my android program, but now i get some odd errors. > This is the out put: > [xmlvm.ajavac] > /Users/ProMonger/xmlvm/trunk/xmlvm/demo/android/dev-project-http2/nbproject/androidsupport.xml:81: > warning: 'includeantruntime' was not set, defaulting to > build.sysclasspath=last; set to false for repeatable builds > [xmlvm.ajavac] Compiling 3 source files to > /Users/ProMonger/xmlvm/trunk/xmlvm/demo/android/dev-project-http2/bin/classes > [xmlvm.ajavac] > /Users/ProMonger/xmlvm/trunk/xmlvm/demo/android/dev-project-http2/src/big8/wifi/CommunicationService.java:40: > method does not override or implement a method from a supertype > [xmlvm.ajavac] @Override > [xmlvm.ajavac] ^ > [xmlvm.ajavac] > /Users/ProMonger/xmlvm/trunk/xmlvm/demo/android/dev-project-http2/src/big8/wifi/CommunicationService.java:49: > cannot find symbol > [xmlvm.ajavac] symbol : variable START_STICKY > [xmlvm.ajavac] location: class big8.wifi.CommunicationService > [xmlvm.ajavac] return START_STICKY; > [xmlvm.ajavac] ^ > [xmlvm.ajavac] > /Users/ProMonger/xmlvm/trunk/xmlvm/demo/android/dev-project-http2/src/big8/wifi/CommunicationService.java:44: > method does not override or implement a method from a supertype > [xmlvm.ajavac] @Override > [xmlvm.ajavac] ^ > [xmlvm.ajavac] > /Users/ProMonger/xmlvm/trunk/xmlvm/demo/android/dev-project-http2/src/big8/wifi/DeviceListActivity.java:65: > cannot find symbol > [xmlvm.ajavac] symbol : variable layout > [xmlvm.ajavac] location: class android.R > [xmlvm.ajavac] android.R.layout.simple_list_item_1, > [xmlvm.ajavac] ^ > [xmlvm.ajavac] > /Users/ProMonger/xmlvm/trunk/xmlvm/demo/android/dev-project-http2/src/big8/wifi/DeviceListActivity.java:101: > cannot find symbol > [xmlvm.ajavac] symbol : variable layout > [xmlvm.ajavac] location: class android.R > [xmlvm.ajavac] android.R.layout.simple_list_item_1, > [xmlvm.ajavac] ^ > [xmlvm.ajavac] 5 errors > > BUILD FAILED > /Users/ProMonger/xmlvm/trunk/xmlvm/demo/android/dev-project-http2/nbproject/xcode.xml:179: > The following error occurred while executing this line: > /Users/ProMonger/xmlvm/trunk/xmlvm/demo/android/dev-project-http2/nbproject/androidsupport.xml:81: > Compile failed; see the compiler error output for details. > > i'm not sure about the @override error, but as far as i know the > android.R.layout.simple_list_item_1 and the START_STICKY are android > specific or am i wrong? doesn't xmlvm support this? > And what can i do to correct these errors? > > Kind regards > Christoffer > > > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > > > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Christoffer K. <chr...@ya...> - 2011-03-23 21:31:15
|
Hello xmlvm experts. I've re-compiled my android program, but now i get some odd errors.This is the out put:[xmlvm.ajavac] /Users/ProMonger/xmlvm/trunk/xmlvm/demo/android/dev-project-http2/nbproject/androidsupport.xml:81: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds[xmlvm.ajavac] Compiling 3 source files to /Users/ProMonger/xmlvm/trunk/xmlvm/demo/android/dev-project-http2/bin/classes[xmlvm.ajavac] /Users/ProMonger/xmlvm/trunk/xmlvm/demo/android/dev-project-http2/src/big8/wifi/CommunicationService.java:40: method does not override or implement a method from a supertype[xmlvm.ajavac] @Override[xmlvm.ajavac] ^[xmlvm.ajavac] /Users/ProMonger/xmlvm/trunk/xmlvm/demo/android/dev-project-http2/src/big8/wifi/CommunicationService.java:49: cannot find symbol[xmlvm.ajavac] symbol : variable START_STICKY[xmlvm.ajavac] location: class big8.wifi.CommunicationService[xmlvm.ajavac] return START_STICKY;[xmlvm.ajavac] ^[xmlvm.ajavac] /Users/ProMonger/xmlvm/trunk/xmlvm/demo/android/dev-project-http2/src/big8/wifi/CommunicationService.java:44: method does not override or implement a method from a supertype[xmlvm.ajavac] @Override[xmlvm.ajavac] ^[xmlvm.ajavac] /Users/ProMonger/xmlvm/trunk/xmlvm/demo/android/dev-project-http2/src/big8/wifi/DeviceListActivity.java:65: cannot find symbol[xmlvm.ajavac] symbol : variable layout[xmlvm.ajavac] location: class android.R[xmlvm.ajavac] android.R.layout.simple_list_item_1,[xmlvm.ajavac] ^[xmlvm.ajavac] /Users/ProMonger/xmlvm/trunk/xmlvm/demo/android/dev-project-http2/src/big8/wifi/DeviceListActivity.java:101: cannot find symbol[xmlvm.ajavac] symbol : variable layout[xmlvm.ajavac] location: class android.R[xmlvm.ajavac] android.R.layout.simple_list_item_1,[xmlvm.ajavac] ^[xmlvm.ajavac] 5 errors BUILD FAILED/Users/ProMonger/xmlvm/trunk/xmlvm/demo/android/dev-project-http2/nbproject/xcode.xml:179: The following error occurred while executing this line:/Users/ProMonger/xmlvm/trunk/xmlvm/demo/android/dev-project-http2/nbproject/androidsupport.xml:81: Compile failed; see the compiler error output for details. i'm not sure about the @override error, but as far as i know the android.R.layout.simple_list_item_1 and the START_STICKY are android specific or am i wrong? doesn't xmlvm support this? And what can i do to correct these errors? Kind regardsChristoffer |
From: Christoffer K. <chr...@ya...> - 2011-03-23 12:08:22
|
Hello everyone.I still have this client/server android program that i have made compile in xcode. my problem is now that the program starts up in the simulator but then it shuts down. but when i add a main.m file in my resources folder and out comment the last part (int main part) in the android_internal_AndroidAppLauncher.m class, than the program keeps running on the simulator but shows nothing on the screen.the program has got some problems with some java classes called java_net_DatagramPacket, java_net_DatagramSocket and java_net_InetAddress.But i can not see how these classes should prevent the program from showing something on the screen.Now i need to have the layout up and running somehow and make it show something on the screen.can anybody please help!Kind regards From Christoffer |
From: Wolfgang K. <wol...@xm...> - 2011-03-23 10:56:36
|
Miggi, after looking into your program I figured out what the problem actually is. You use the onClick attribute to register the Button's OnCllickListener. This seems to be not supported by now. Please register the Listener programatically for now. -- Wolfgang On 22.03.11 21:13, Miggi wrote: > Hello, > > I've extended my little dummy project and added a second Activity which > should start after pressing the button...but that doesn't work. The > compilation was finished without an error and the project started in > iPhone simulator. > > Here is the code of the first Activity. I think all parts should be > supported: > > package de.android.ContactForms; > > import android.app.Activity; > import android.content.Intent; > import android.os.Bundle; > import android.view.View; > import android.widget.CheckBox; > import android.widget.EditText; > import android.widget.TextView; > > public class ContactForm extends Activity { > public static String name; > public static String email; > public static String feedback; > public static Boolean bool; > > /** Called when the activity is first created. */ > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > setContentView(R.layout.main); > } > > public void sendFeedback(View button) { > > final EditText nameField = (EditText) > findViewById(R.id.EditTextName); > name = nameField.getText().toString(); > > final EditText emailField = (EditText) > findViewById(R.id.EditTextEmail); > email = emailField.getText().toString(); > > final EditText feedbackField = (EditText) > findViewById(R.id.EditTextFeedbackBody); > feedback = feedbackField.getText().toString(); > > final CheckBox checkBox = (CheckBox) findViewById(R.id.checkBox1); > if(checkBox.isChecked()){ > bool = true; > }else{ > bool = false; > } > > startActivity(new Intent(ContactForm.this, Sended.class)); > > } > > } > > Or do you need some other information? > > Thank you. > > Miggi > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Miggi <mig...@go...> - 2011-03-22 20:13:59
|
Hello, I've extended my little dummy project and added a second Activity which should start after pressing the button...but that doesn't work. The compilation was finished without an error and the project started in iPhone simulator. Here is the code of the first Activity. I think all parts should be supported: package de.android.ContactForms; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.CheckBox; import android.widget.EditText; import android.widget.TextView; public class ContactForm extends Activity { public static String name; public static String email; public static String feedback; public static Boolean bool; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } public void sendFeedback(View button) { final EditText nameField = (EditText) findViewById(R.id.EditTextName); name = nameField.getText().toString(); final EditText emailField = (EditText) findViewById(R.id.EditTextEmail); email = emailField.getText().toString(); final EditText feedbackField = (EditText) findViewById(R.id.EditTextFeedbackBody); feedback = feedbackField.getText().toString(); final CheckBox checkBox = (CheckBox) findViewById(R.id.checkBox1); if(checkBox.isChecked()){ bool = true; }else{ bool = false; } startActivity(new Intent(ContactForm.this, Sended.class)); } } Or do you need some other information? Thank you. Miggi |
From: Wolfgang K. <wol...@xm...> - 2011-03-22 12:43:12
|
Miggi, please have a look at the stack trace you sent. You removed the android:text attribute from the layout resource. However, there seems to be a call to setText in you program which is not supported. 3 de.android.ContactForms 0x000cfbf1 -[android_widget_CheckBox setText___java_lang_String:] + 132 Try to remove all calls to CheckBox.setText(String) as well and see what happens. As mentioned before, I suggest using a label and a checkbox without text for now. I think we will update the Android compat-lib to automatically map CheckBox to a combination of UILabel and UISwitch. But that requires some work and will take some time to be implemented. -- Wolfgang On 22.03.11 13:17, Miggi wrote: > Hello Wolfgang, > > thanks for your efforts, but the application still won't run. I've > updated XMLVM to head revision, deleted the text attribute in checkbox > and tried again to cross-compile the project. Compilation doesn't throw > any error messages but after starting the project in the iPhone > simulator it terminates immediately. > > That's how the checkbox in main.xml look like: > > <CheckBox > android:id="@+id/CheckBoxResponse" > android:layout_height="wrap_content" > android:layout_width="fill_parent"> > </CheckBox> > > > And that's the new stack trace I received: > > *** Call stack at first throw: > ( > 0 CoreFoundation 0x030c8b99 > __exceptionPreprocess + 185 > 1 libobjc.A.dylib 0x02ebd40e > objc_exception_throw + 47 > 2 de.android.ContactForms 0x0007fcf6 > +[android_internal_Assert CHECK___boolean:] + 0 > 3 de.android.ContactForms 0x000cfbf1 > -[android_widget_CheckBox setText___java_lang_String:] + 132 > 4 de.android.ContactForms 0x00107ded > -[android_widget_TextView > parseTextViewAttributes___android_util_AttributeSet:] + 322 > 5 de.android.ContactForms 0x001068a5 > -[android_widget_TextView > initTextView___android_content_Context_android_util_AttributeSet::] + 195 > 6 de.android.ContactForms 0x00106796 > -[android_widget_TextView > __init_android_widget_TextView___android_content_Context_android_util_AttributeSet::] > + 350 > 7 de.android.ContactForms 0x000cdcf1 > -[android_widget_Button > __init_android_widget_Button___android_content_Context_android_util_AttributeSet::] > + 142 > 8 de.android.ContactForms 0x000cff67 > -[android_widget_CompoundButton > __init_android_widget_CompoundButton___android_content_Context_android_util_AttributeSet::] > + 142 > 9 de.android.ContactForms 0x000cf2d1 > -[android_widget_CheckBox > __init_android_widget_CheckBox___android_content_Context_android_util_AttributeSet::] > + 142 > 10 CoreFoundation 0x030395cd __invoking___ + 29 > 11 CoreFoundation 0x030394a1 -[NSInvocation > invoke] + 145 > 12 de.android.ContactForms 0x00016cdd > -[java_lang_reflect_Constructor > newInstance___java_lang_Object_ARRAYTYPE:] + 518 > 13 de.android.ContactForms 0x00089a40 > -[android_internal_LayoutParser > createView___java_lang_String_android_content_Context_android_util_AttributeSet:::] > + 1027 > 14 de.android.ContactForms 0x0008861f > -[android_internal_LayoutParser > didStartElement___org_xmlvm_iphone_NSXMLParser_java_lang_String_java_lang_String_java_lang_String_java_util_Map:::::] > + 1000 > 15 de.android.ContactForms 0x0002b47f > -[org_xmlvm_iphone_NSXMLParserDelegate > parser:didStartElement:namespaceURI:qualifiedName:attributes:] + 130 > 16 Foundation 0x005c2999 _startElementNs > + 1478 > 17 libxml2.2.dylib 0x03d39ac0 xmlParseXMLDecl > + 8539 > 18 libxml2.2.dylib 0x03d423c4 xmlParseChunk + 1955 > 19 Foundation 0x005c1baa -[NSXMLParser > parse] + 321 > 20 de.android.ContactForms 0x0002b3a4 > -[NSXMLParser(cat_NSXMLParser) parse__] + 36 > 21 de.android.ContactForms 0x0008761a > +[android_internal_LayoutManager > getLayout___android_content_Context_int_android_view_ViewGroup:::] + 533 > 22 de.android.ContactForms 0x000c3b5b > -[android_view_Window setContentView___int:] + 203 > 23 de.android.ContactForms 0x00041eaf > -[android_app_Activity setContentView___int:] + 137 > 24 de.android.ContactForms 0x00002225 > -[de_android_ContactForms_ContactForm onCreate___android_os_Bundle:] + 157 > 25 de.android.ContactForms 0x00040bea > -[android_app_Activity create___java_lang_Object:] + 600 > 26 Foundation 0x00507978 > -[NSObject(NSThreadPerformAdditions) > performSelector:onThread:withObject:waitUntilDone:modes:] + 229 > 27 Foundation 0x00519f86 > -[NSObject(NSThreadPerformAdditions) > performSelectorOnMainThread:withObject:waitUntilDone:] + 184 > 28 de.android.ContactForms 0x00029c13 > +[NSObject(cat_org_xmlvm_iphone_NSObject) > performSelectorOnMainThread___java_lang_Object_java_lang_String_java_lang_Object_boolean::::] > + 175 > 29 de.android.ContactForms 0x00040660 > -[android_app_Activity xmlvmCreate___android_os_Bundle:] + 173 > 30 de.android.ContactForms 0x0004a883 > -[android_content_Context > startActivityForResult___android_content_Intent_int::] + 1528 > 31 de.android.ContactForms 0x0004ac76 > -[android_content_Context startActivity___android_content_Intent:] + 118 > 32 de.android.ContactForms 0x0004610c > -[android_app_Application onCreate__] + 707 > 33 de.android.ContactForms 0x0007c3b5 > -[android_internal_AndroidAppLauncher > applicationDidFinishLaunching___org_xmlvm_iphone_UIApplication:] + 140 > 34 de.android.ContactForms 0x0002fd65 > -[org_xmlvm_iphone_UIApplicationDelegate applicationDidFinishLaunching:] > + 43 > 35 UIKit 0x00789f80 -[UIApplication > _callInitializationDelegatesForURL:payload:suspended:] + 1252 > 36 UIKit 0x0078c3b0 -[UIApplication > _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 346 > 37 UIKit 0x007963ec -[UIApplication > handleEvent:withNewEvent:] + 1958 > 38 UIKit 0x0078eb3c -[UIApplication > sendEvent:] + 71 > 39 UIKit 0x007939bf > _UIApplicationHandleEvent + 7672 > 40 GraphicsServices 0x0360a822 > PurpleEventCallback + 1550 > 41 CoreFoundation 0x030a9ff4 > __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52 > 42 CoreFoundation 0x0300a807 > __CFRunLoopDoSource1 + 215 > 43 CoreFoundation 0x03007a93 __CFRunLoopRun + 979 > 44 CoreFoundation 0x03007350 > CFRunLoopRunSpecific + 208 > 45 CoreFoundation 0x03007271 > CFRunLoopRunInMode + 97 > 46 UIKit 0x0078bc6d -[UIApplication > _run] + 625 > 47 UIKit 0x00797af2 > UIApplicationMain + 1160 > 48 de.android.ContactForms 0x0002f90c > +[org_xmlvm_iphone_UIApplication > main___java_lang_String_ARRAYTYPE_java_lang_Class_java_lang_Class:::] + 565 > 49 de.android.ContactForms 0x0007c809 > +[android_internal_AndroidAppLauncher > main___java_lang_String_ARRAYTYPE:] + 173 > 50 de.android.ContactForms 0x0007cb8c main + 278 > 51 de.android.ContactForms 0x00002039 start + 53 > ) > terminate called after throwing an instance of 'java_lang_RuntimeException' > > Am 22.03.2011 11:48, schrieb xml...@li...: >> Send xmlvm-users mailing list submissions to >> xml...@li... >> >> To subscribe or unsubscribe via the World Wide Web, visit >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> or, via email, send a message with subject or body 'help' to >> xml...@li... >> >> You can reach the person managing the list at >> xml...@li... >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of xmlvm-users digest..." >> >> >> Today's Topics: >> >> 1. Re: UI Elements I use (Wolfgang Korn) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Tue, 22 Mar 2011 11:17:33 +0100 >> From: Wolfgang Korn<wol...@xm...> >> Subject: Re: [xmlvm-users] UI Elements I use >> To: opwoco GbR<in...@op...> >> Cc: "xml...@li..." >> <xml...@li...> >> Message-ID:<4D8...@xm...> >> Content-Type: text/plain; charset="iso-8859-1" >> >> Miggi, >> >> I just added the missing constructor as well as an implementation of >> setText() to CheckBox. Since UISwitch does not support setting a text, >> setText will fail for CheckBoxes. To try it please remove the >> android:text attribute from your layout resource (for the CheckBox only, >> of course). Please let me know it it working now. >> >> -- Wolfgang >> > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Miggi <mig...@go...> - 2011-03-22 12:18:08
|
Hello Wolfgang, thanks for your efforts, but the application still won't run. I've updated XMLVM to head revision, deleted the text attribute in checkbox and tried again to cross-compile the project. Compilation doesn't throw any error messages but after starting the project in the iPhone simulator it terminates immediately. That's how the checkbox in main.xml look like: <CheckBox android:id="@+id/CheckBoxResponse" android:layout_height="wrap_content" android:layout_width="fill_parent"> </CheckBox> And that's the new stack trace I received: *** Call stack at first throw: ( 0 CoreFoundation 0x030c8b99 __exceptionPreprocess + 185 1 libobjc.A.dylib 0x02ebd40e objc_exception_throw + 47 2 de.android.ContactForms 0x0007fcf6 +[android_internal_Assert CHECK___boolean:] + 0 3 de.android.ContactForms 0x000cfbf1 -[android_widget_CheckBox setText___java_lang_String:] + 132 4 de.android.ContactForms 0x00107ded -[android_widget_TextView parseTextViewAttributes___android_util_AttributeSet:] + 322 5 de.android.ContactForms 0x001068a5 -[android_widget_TextView initTextView___android_content_Context_android_util_AttributeSet::] + 195 6 de.android.ContactForms 0x00106796 -[android_widget_TextView __init_android_widget_TextView___android_content_Context_android_util_AttributeSet::] + 350 7 de.android.ContactForms 0x000cdcf1 -[android_widget_Button __init_android_widget_Button___android_content_Context_android_util_AttributeSet::] + 142 8 de.android.ContactForms 0x000cff67 -[android_widget_CompoundButton __init_android_widget_CompoundButton___android_content_Context_android_util_AttributeSet::] + 142 9 de.android.ContactForms 0x000cf2d1 -[android_widget_CheckBox __init_android_widget_CheckBox___android_content_Context_android_util_AttributeSet::] + 142 10 CoreFoundation 0x030395cd __invoking___ + 29 11 CoreFoundation 0x030394a1 -[NSInvocation invoke] + 145 12 de.android.ContactForms 0x00016cdd -[java_lang_reflect_Constructor newInstance___java_lang_Object_ARRAYTYPE:] + 518 13 de.android.ContactForms 0x00089a40 -[android_internal_LayoutParser createView___java_lang_String_android_content_Context_android_util_AttributeSet:::] + 1027 14 de.android.ContactForms 0x0008861f -[android_internal_LayoutParser didStartElement___org_xmlvm_iphone_NSXMLParser_java_lang_String_java_lang_String_java_lang_String_java_util_Map:::::] + 1000 15 de.android.ContactForms 0x0002b47f -[org_xmlvm_iphone_NSXMLParserDelegate parser:didStartElement:namespaceURI:qualifiedName:attributes:] + 130 16 Foundation 0x005c2999 _startElementNs + 1478 17 libxml2.2.dylib 0x03d39ac0 xmlParseXMLDecl + 8539 18 libxml2.2.dylib 0x03d423c4 xmlParseChunk + 1955 19 Foundation 0x005c1baa -[NSXMLParser parse] + 321 20 de.android.ContactForms 0x0002b3a4 -[NSXMLParser(cat_NSXMLParser) parse__] + 36 21 de.android.ContactForms 0x0008761a +[android_internal_LayoutManager getLayout___android_content_Context_int_android_view_ViewGroup:::] + 533 22 de.android.ContactForms 0x000c3b5b -[android_view_Window setContentView___int:] + 203 23 de.android.ContactForms 0x00041eaf -[android_app_Activity setContentView___int:] + 137 24 de.android.ContactForms 0x00002225 -[de_android_ContactForms_ContactForm onCreate___android_os_Bundle:] + 157 25 de.android.ContactForms 0x00040bea -[android_app_Activity create___java_lang_Object:] + 600 26 Foundation 0x00507978 -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 229 27 Foundation 0x00519f86 -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] + 184 28 de.android.ContactForms 0x00029c13 +[NSObject(cat_org_xmlvm_iphone_NSObject) performSelectorOnMainThread___java_lang_Object_java_lang_String_java_lang_Object_boolean::::] + 175 29 de.android.ContactForms 0x00040660 -[android_app_Activity xmlvmCreate___android_os_Bundle:] + 173 30 de.android.ContactForms 0x0004a883 -[android_content_Context startActivityForResult___android_content_Intent_int::] + 1528 31 de.android.ContactForms 0x0004ac76 -[android_content_Context startActivity___android_content_Intent:] + 118 32 de.android.ContactForms 0x0004610c -[android_app_Application onCreate__] + 707 33 de.android.ContactForms 0x0007c3b5 -[android_internal_AndroidAppLauncher applicationDidFinishLaunching___org_xmlvm_iphone_UIApplication:] + 140 34 de.android.ContactForms 0x0002fd65 -[org_xmlvm_iphone_UIApplicationDelegate applicationDidFinishLaunching:] + 43 35 UIKit 0x00789f80 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1252 36 UIKit 0x0078c3b0 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 346 37 UIKit 0x007963ec -[UIApplication handleEvent:withNewEvent:] + 1958 38 UIKit 0x0078eb3c -[UIApplication sendEvent:] + 71 39 UIKit 0x007939bf _UIApplicationHandleEvent + 7672 40 GraphicsServices 0x0360a822 PurpleEventCallback + 1550 41 CoreFoundation 0x030a9ff4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52 42 CoreFoundation 0x0300a807 __CFRunLoopDoSource1 + 215 43 CoreFoundation 0x03007a93 __CFRunLoopRun + 979 44 CoreFoundation 0x03007350 CFRunLoopRunSpecific + 208 45 CoreFoundation 0x03007271 CFRunLoopRunInMode + 97 46 UIKit 0x0078bc6d -[UIApplication _run] + 625 47 UIKit 0x00797af2 UIApplicationMain + 1160 48 de.android.ContactForms 0x0002f90c +[org_xmlvm_iphone_UIApplication main___java_lang_String_ARRAYTYPE_java_lang_Class_java_lang_Class:::] + 565 49 de.android.ContactForms 0x0007c809 +[android_internal_AndroidAppLauncher main___java_lang_String_ARRAYTYPE:] + 173 50 de.android.ContactForms 0x0007cb8c main + 278 51 de.android.ContactForms 0x00002039 start + 53 ) terminate called after throwing an instance of 'java_lang_RuntimeException' Am 22.03.2011 11:48, schrieb xml...@li...: > Send xmlvm-users mailing list submissions to > xml...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > or, via email, send a message with subject or body 'help' to > xml...@li... > > You can reach the person managing the list at > xml...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of xmlvm-users digest..." > > > Today's Topics: > > 1. Re: UI Elements I use (Wolfgang Korn) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 22 Mar 2011 11:17:33 +0100 > From: Wolfgang Korn<wol...@xm...> > Subject: Re: [xmlvm-users] UI Elements I use > To: opwoco GbR<in...@op...> > Cc: "xml...@li..." > <xml...@li...> > Message-ID:<4D8...@xm...> > Content-Type: text/plain; charset="iso-8859-1" > > Miggi, > > I just added the missing constructor as well as an implementation of > setText() to CheckBox. Since UISwitch does not support setting a text, > setText will fail for CheckBoxes. To try it please remove the > android:text attribute from your layout resource (for the CheckBox only, > of course). Please let me know it it working now. > > -- Wolfgang > |
From: Wolfgang K. <wol...@xm...> - 2011-03-22 10:48:09
|
Miggi, I just added the missing constructor as well as an implementation of setText() to CheckBox. Since UISwitch does not support setting a text, setText will fail for CheckBoxes. To try it please remove the android:text attribute from your layout resource (for the CheckBox only, of course). Please let me know it it working now. -- Wolfgang On 22.03.11 08:23, opwoco GbR wrote: > Hi Wolfgang, > > i'm not sure about how to use android-UIs with xmlvm to create an ios > project safely. > > 1) Can I use the standard android xml layout , generated with the > Android-Interface-Builder? > 2) Or must I create the layout just using code ? > > I'm confused because of this thread and that post below: > > >> I have the same issue: "when I run my application, it opens up a > black window and then automatically shuts down" > >> http://sourceforge.net/mailarchive/message.php?msg_id=23705695 > > > 2011/3/22 Wolfgang Korn <wol...@xm... <mailto:wol...@xm...>> > > Miggi, > > the widgets you are using in your little sample are all supported. > From > the stack trace you sent I could see that the problem is actually > caused > by a missing constructor. So I went through the classes and > noticed that > Checkbox(Context, AttributeSet) is currently missing. Although adding > the constructor is simple and will make your layout work, there is one > problem left which requires some more work. Checkbox is a control > which > does not exist on the iPhone. We mapped Checkbox to UISwitch. In > contrast to Android's Checkbox UISwitch does not support setting size > and text. So a more complete implementation would be mapping > Checkbox to > a group of UILabel and UISwitch so that at least setting text would be > supported. > > As a workaround I suggest using separate controls for the the > label and > the Checkbox in your layout. That would work after adding the missing > constructor. There is one more thing which can be helpful. We support > "IOS specific layouts". This basically means you can have a layout > resource (i.e. main.xml) which is used in case your app runs on > Android. > If you have a second resource with the same name prefixed with _ios_ > (i.e. _ios_main.xml) this will be used instead of the original one > when > running on IOS. This mechanism supports using widgets which are not > directly supported on IOS. In your case you can have one resource for > Android using the Checkbox as you did in your sample. However, the IOS > specific resource would use the workaround using separate Label and > Checkbox widgets. > > I will add the missing constructor to Checkbox later today. > > -- Wolfgang > > > > On 20.03.11 23:48, Miggi wrote: > > Hello Arno. > > > > This is the whole layout of my little dummy program: > > > > <ScrollView > > xmlns:android="http://schemas.android.com/apk/res/android" > > android:id="@+id/ScrollView01" > > android:scrollbars="vertical" > > android:layout_width="fill_parent" > > android:layout_height="wrap_content"> > > <LinearLayout > > android:layout_width="fill_parent" > > android:orientation="vertical" > > android:layout_height="fill_parent"> > > <TextView > > android:id="@+id/TextViewTitle" > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:text="@string/feedbacktitle" > > android:textSize="10sp"> > > </TextView> > > <EditText > > android:id="@+id/EditTextName" > > android:layout_height="wrap_content" > > android:hint="@string/feedbackname" > > android:inputType="textPersonName" > > android:layout_width="fill_parent"> > > </EditText> > > <EditText > > android:id="@+id/EditTextEmail" > > android:layout_height="wrap_content" > > android:hint="@string/feedbackemail" > > android:inputType="textEmailAddress" > > android:layout_width="fill_parent"> > > </EditText> > > <EditText > > android:id="@+id/EditTextFeedbackBody" > > android:layout_height="wrap_content" > > android:hint="@string/feedbackbody" > > android:inputType="textMultiLine" > > android:lines="5" > > android:layout_width="fill_parent"> > > </EditText> > > <CheckBox > > android:id="@+id/CheckBoxResponse" > > android:layout_height="wrap_content" > > android:text="@string/feedbackresponse" > > android:layout_width="fill_parent"> > > </CheckBox> > > <Button > > android:id="@+id/ButtonSendFeedback" > > android:layout_height="wrap_content" > > android:text="@string/feedbackbutton" > > android:onClick="sendFeedback" > > android:layout_width="fill_parent"> > > </Button> > > </LinearLayout> > > </ScrollView> > > > >> Message: 4 > >> Date: Sat, 19 Mar 2011 09:25:27 -0700 > >> From: Arno Puder<ar...@pu... <mailto:ar...@pu...>> > >> Subject: Re: [xmlvm-users] Error in java_lang_reflect_Constructor > >> To: xml...@li... > <mailto:xml...@li...> > >> Message-ID:<4D8...@pu... > <mailto:4D8...@pu...>> > >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >> > >> > >> XMLVM tries to instantiate a UI element that it finds in your .xml > >> resource via Java reflection, but that particular UI element > does not > >> yet exist in XMLVM. You can find the UI elements that are > supported by > >> XMLVM in source folder src/android2iphone in packages > android.widget and > >> android.view. > >> > >> If you tell me which UI element you are trying to use I can > give you an > >> estimate on how difficult it would be to implement it in XMLVM. > >> > >> Arno > >> > >> > >> On 3/19/11 4:04 AM, Miggi wrote: > >>> After the java_lang_RuntimeException and the error in > >>> android_webkit_WebView_2 (which is gone without changing > something) the > >>> project still won't run. > >>> > >>> Now I get a NSException in the class > java_lang_reflect_Constructor in > >>> the method newInstance___java_lang_Object_ARRAYTYPE. > >>> > >>> Here's again the output from Xcode console: > >>> <I> <Resources>: Unable to resolve resources for > >>> de.android.ContactForms: array > >>> <I> <Resources>: Unable to resolve resources for > >>> de.android.ContactForms: dimen > >>> <I> <Resources>: Unable to resolve resources for > >>> de.android.ContactForms: raw > >>> <I> <Resources>: Unable to resolve resources for > >>> de.android.ContactForms: array > >>> <I> <Resources>: Unable to resolve resources for > >>> de.android.ContactForms: dimen > >>> <I> <Resources>: Unable to resolve resources for > >>> de.android.ContactForms: raw > >>> 2011-03-19 11:52:11.887 de.android.ContactForms[7701:207] *** > >>> Terminating app due to uncaught exception > 'NSInvalidArgumentException', > >>> reason: '+[NSInvocation invocationWithMethodSignature:]: method > >>> signature argument cannot be nil' > >>> *** Call stack at first throw: > >>> ( > >>> 0 CoreFoundation 0x030c1b99 > >>> __exceptionPreprocess + 185 > >>> 1 libobjc.A.dylib 0x02eb640e > >>> objc_exception_throw + 47 > >>> 2 CoreFoundation 0x03031a59 > +[NSInvocation > >>> invocationWithMethodSignature:] + 553 > >>> 3 de.android.ContactForms 0x00016e7b > >>> -[java_lang_reflect_Constructor > >>> newInstance___java_lang_Object_ARRAYTYPE:] + 320 > >>> 4 de.android.ContactForms 0x00089ca4 > >>> -[android_internal_LayoutParser > >>> > createView___java_lang_String_android_content_Context_android_util_AttributeSet:::] > >>> + 1027 > >>> 5 de.android.ContactForms 0x00088883 > >>> -[android_internal_LayoutParser > >>> > didStartElement___org_xmlvm_iphone_NSXMLParser_java_lang_String_java_lang_String_java_lang_String_java_util_Map:::::] > >>> + 1000 > >>> 6 de.android.ContactForms 0x0002b6e3 > >>> -[org_xmlvm_iphone_NSXMLParserDelegate > >>> parser:didStartElement:namespaceURI:qualifiedName:attributes:] > + 130 > >>> 7 Foundation 0x005bb999 > _startElementNs > >>> + 1478 > >>> 8 libxml2.2.dylib 0x03d32ac0 > xmlParseXMLDecl > >>> + 8539 > >>> 9 libxml2.2.dylib 0x03d3b3c4 > xmlParseChunk + 1955 > >>> 10 Foundation 0x005babaa > -[NSXMLParser > >>> parse] + 321 > >>> 11 de.android.ContactForms 0x0002b608 > >>> -[NSXMLParser(cat_NSXMLParser) parse__] + 36 > >>> 12 de.android.ContactForms 0x0008787e > >>> +[android_internal_LayoutManager > >>> > getLayout___android_content_Context_int_android_view_ViewGroup:::] > + 533 > >>> 13 de.android.ContactForms 0x000c3dbf > >>> -[android_view_Window setContentView___int:] + 203 > >>> 14 de.android.ContactForms 0x00042113 > >>> -[android_app_Activity setContentView___int:] + 137 > >>> 15 de.android.ContactForms 0x00002459 > >>> -[de_android_ContactForms_ContactForm > onCreate___android_os_Bundle:] + 157 > >>> 16 de.android.ContactForms 0x00040e4e > >>> -[android_app_Activity create___java_lang_Object:] + 600 > >>> 17 Foundation 0x00500978 > >>> -[NSObject(NSThreadPerformAdditions) > >>> performSelector:onThread:withObject:waitUntilDone:modes:] + 229 > >>> 18 Foundation 0x00512f86 > >>> -[NSObject(NSThreadPerformAdditions) > >>> performSelectorOnMainThread:withObject:waitUntilDone:] + 184 > >>> 19 de.android.ContactForms 0x00029e77 > >>> +[NSObject(cat_org_xmlvm_iphone_NSObject) > >>> > performSelectorOnMainThread___java_lang_Object_java_lang_String_java_lang_Object_boolean::::] > >>> + 175 > >>> 20 de.android.ContactForms 0x000408c4 > >>> -[android_app_Activity xmlvmCreate___android_os_Bundle:] + 173 > >>> 21 de.android.ContactForms 0x0004aae7 > >>> -[android_content_Context > >>> startActivityForResult___android_content_Intent_int::] + 1528 > >>> 22 de.android.ContactForms 0x0004aeda > >>> -[android_content_Context > startActivity___android_content_Intent:] + 118 > >>> 23 de.android.ContactForms 0x00046370 > >>> -[android_app_Application onCreate__] + 707 > >>> 24 de.android.ContactForms 0x0007c619 > >>> -[android_internal_AndroidAppLauncher > >>> > applicationDidFinishLaunching___org_xmlvm_iphone_UIApplication:] + 140 > >>> 25 de.android.ContactForms 0x0002ffc9 > >>> -[org_xmlvm_iphone_UIApplicationDelegate > applicationDidFinishLaunching:] > >>> + 43 > >>> 26 UIKit 0x00782f80 > -[UIApplication > >>> _callInitializationDelegatesForURL:payload:suspended:] + 1252 > >>> 27 UIKit 0x007853b0 > -[UIApplication > >>> > _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] > + 346 > >>> 28 UIKit 0x0078f3ec > -[UIApplication > >>> handleEvent:withNewEvent:] + 1958 > >>> 29 UIKit 0x00787b3c > -[UIApplication > >>> sendEvent:] + 71 > >>> 30 UIKit 0x0078c9bf > >>> _UIApplicationHandleEvent + 7672 > >>> 31 GraphicsServices 0x03603822 > >>> PurpleEventCallback + 1550 > >>> 32 CoreFoundation 0x030a2ff4 > >>> __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52 > >>> 33 CoreFoundation 0x03003807 > >>> __CFRunLoopDoSource1 + 215 > >>> 34 CoreFoundation 0x03000a93 > __CFRunLoopRun + 979 > >>> 35 CoreFoundation 0x03000350 > >>> CFRunLoopRunSpecific + 208 > >>> 36 CoreFoundation 0x03000271 > >>> CFRunLoopRunInMode + 97 > >>> 37 UIKit 0x00784c6d > -[UIApplication > >>> _run] + 625 > >>> 38 UIKit 0x00790af2 > >>> UIApplicationMain + 1160 > >>> 39 de.android.ContactForms 0x0002fb70 > >>> +[org_xmlvm_iphone_UIApplication > >>> > main___java_lang_String_ARRAYTYPE_java_lang_Class_java_lang_Class:::] > + 565 > >>> 40 de.android.ContactForms 0x0007ca6d > >>> +[android_internal_AndroidAppLauncher > >>> main___java_lang_String_ARRAYTYPE:] + 173 > >>> 41 de.android.ContactForms 0x0007cdf0 main > + 278 > >>> 42 de.android.ContactForms 0x0000226d > start + 53 > >>> 43 ??? 0x00000001 0x0 + 1 > >>> ) > >>> terminate called after throwing an instance of 'NSException' > >>> > >>> Stil an idea what's going wrong? Shall I post the unerlying > >>> android-project with its main.xml and string.xml? > >>> > >>> Thank you > >>> Miggi > >>> > >>> > ------------------------------------------------------------------------------ > >>> Colocation vs. Managed Hosting > >>> A question and answer guide to determining the best fit > >>> for your organization - today and in the future. > >>> http://p.sf.net/sfu/internap-sfd2d > >>> _______________________________________________ > >>> xmlvm-users mailing list > >>> xml...@li... > <mailto:xml...@li...> > >>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > ------------------------------------------------------------------------------ > > Colocation vs. Managed Hosting > > A question and answer guide to determining the best fit > > for your organization - today and in the future. > > http://p.sf.net/sfu/internap-sfd2d > > _______________________________________________ > > xmlvm-users mailing list > > xml...@li... > <mailto:xml...@li...> > > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to > meet the > growing manageability and security demands of your customers. > Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your > software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > xmlvm-users mailing list > xml...@li... > <mailto:xml...@li...> > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |
From: Wolfgang K. <wol...@xm...> - 2011-03-22 07:54:50
|
Miggi, using Android SDKs UI Builder is fine as long as you stick to the widgets currently supported by XMLVM. The post you are referencing is pretty old and a lot of things have changed. Generally, if there is a runtime error the cross-compiled application simply exits. In the post that was likely due to missing resources or a missing Manifest file. As of now you can create a complete Xcode project with XMLVM which includes everything you need. -- Wolfgang On 22.03.11 08:23, opwoco GbR wrote: > Hi Wolfgang, > > i'm not sure about how to use android-UIs with xmlvm to create an ios > project safely. > > 1) Can I use the standard android xml layout , generated with the > Android-Interface-Builder? > 2) Or must I create the layout just using code ? > > I'm confused because of this thread and that post below: > > >> I have the same issue: "when I run my application, it opens up a > black window and then automatically shuts down" > >> http://sourceforge.net/mailarchive/message.php?msg_id=23705695 > > > 2011/3/22 Wolfgang Korn <wol...@xm... <mailto:wol...@xm...>> > > Miggi, > > the widgets you are using in your little sample are all supported. > From > the stack trace you sent I could see that the problem is actually > caused > by a missing constructor. So I went through the classes and > noticed that > Checkbox(Context, AttributeSet) is currently missing. Although adding > the constructor is simple and will make your layout work, there is one > problem left which requires some more work. Checkbox is a control > which > does not exist on the iPhone. We mapped Checkbox to UISwitch. In > contrast to Android's Checkbox UISwitch does not support setting size > and text. So a more complete implementation would be mapping > Checkbox to > a group of UILabel and UISwitch so that at least setting text would be > supported. > > As a workaround I suggest using separate controls for the the > label and > the Checkbox in your layout. That would work after adding the missing > constructor. There is one more thing which can be helpful. We support > "IOS specific layouts". This basically means you can have a layout > resource (i.e. main.xml) which is used in case your app runs on > Android. > If you have a second resource with the same name prefixed with _ios_ > (i.e. _ios_main.xml) this will be used instead of the original one > when > running on IOS. This mechanism supports using widgets which are not > directly supported on IOS. In your case you can have one resource for > Android using the Checkbox as you did in your sample. However, the IOS > specific resource would use the workaround using separate Label and > Checkbox widgets. > > I will add the missing constructor to Checkbox later today. > > -- Wolfgang > > > > On 20.03.11 23:48, Miggi wrote: > > Hello Arno. > > > > This is the whole layout of my little dummy program: > > > > <ScrollView > > xmlns:android="http://schemas.android.com/apk/res/android" > > android:id="@+id/ScrollView01" > > android:scrollbars="vertical" > > android:layout_width="fill_parent" > > android:layout_height="wrap_content"> > > <LinearLayout > > android:layout_width="fill_parent" > > android:orientation="vertical" > > android:layout_height="fill_parent"> > > <TextView > > android:id="@+id/TextViewTitle" > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:text="@string/feedbacktitle" > > android:textSize="10sp"> > > </TextView> > > <EditText > > android:id="@+id/EditTextName" > > android:layout_height="wrap_content" > > android:hint="@string/feedbackname" > > android:inputType="textPersonName" > > android:layout_width="fill_parent"> > > </EditText> > > <EditText > > android:id="@+id/EditTextEmail" > > android:layout_height="wrap_content" > > android:hint="@string/feedbackemail" > > android:inputType="textEmailAddress" > > android:layout_width="fill_parent"> > > </EditText> > > <EditText > > android:id="@+id/EditTextFeedbackBody" > > android:layout_height="wrap_content" > > android:hint="@string/feedbackbody" > > android:inputType="textMultiLine" > > android:lines="5" > > android:layout_width="fill_parent"> > > </EditText> > > <CheckBox > > android:id="@+id/CheckBoxResponse" > > android:layout_height="wrap_content" > > android:text="@string/feedbackresponse" > > android:layout_width="fill_parent"> > > </CheckBox> > > <Button > > android:id="@+id/ButtonSendFeedback" > > android:layout_height="wrap_content" > > android:text="@string/feedbackbutton" > > android:onClick="sendFeedback" > > android:layout_width="fill_parent"> > > </Button> > > </LinearLayout> > > </ScrollView> > > > >> Message: 4 > >> Date: Sat, 19 Mar 2011 09:25:27 -0700 > >> From: Arno Puder<ar...@pu... <mailto:ar...@pu...>> > >> Subject: Re: [xmlvm-users] Error in java_lang_reflect_Constructor > >> To: xml...@li... > <mailto:xml...@li...> > >> Message-ID:<4D8...@pu... > <mailto:4D8...@pu...>> > >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >> > >> > >> XMLVM tries to instantiate a UI element that it finds in your .xml > >> resource via Java reflection, but that particular UI element > does not > >> yet exist in XMLVM. You can find the UI elements that are > supported by > >> XMLVM in source folder src/android2iphone in packages > android.widget and > >> android.view. > >> > >> If you tell me which UI element you are trying to use I can > give you an > >> estimate on how difficult it would be to implement it in XMLVM. > >> > >> Arno > >> > >> > >> On 3/19/11 4:04 AM, Miggi wrote: > >>> After the java_lang_RuntimeException and the error in > >>> android_webkit_WebView_2 (which is gone without changing > something) the > >>> project still won't run. > >>> > >>> Now I get a NSException in the class > java_lang_reflect_Constructor in > >>> the method newInstance___java_lang_Object_ARRAYTYPE. > >>> > >>> Here's again the output from Xcode console: > >>> <I> <Resources>: Unable to resolve resources for > >>> de.android.ContactForms: array > >>> <I> <Resources>: Unable to resolve resources for > >>> de.android.ContactForms: dimen > >>> <I> <Resources>: Unable to resolve resources for > >>> de.android.ContactForms: raw > >>> <I> <Resources>: Unable to resolve resources for > >>> de.android.ContactForms: array > >>> <I> <Resources>: Unable to resolve resources for > >>> de.android.ContactForms: dimen > >>> <I> <Resources>: Unable to resolve resources for > >>> de.android.ContactForms: raw > >>> 2011-03-19 11:52:11.887 de.android.ContactForms[7701:207] *** > >>> Terminating app due to uncaught exception > 'NSInvalidArgumentException', > >>> reason: '+[NSInvocation invocationWithMethodSignature:]: method > >>> signature argument cannot be nil' > >>> *** Call stack at first throw: > >>> ( > >>> 0 CoreFoundation 0x030c1b99 > >>> __exceptionPreprocess + 185 > >>> 1 libobjc.A.dylib 0x02eb640e > >>> objc_exception_throw + 47 > >>> 2 CoreFoundation 0x03031a59 > +[NSInvocation > >>> invocationWithMethodSignature:] + 553 > >>> 3 de.android.ContactForms 0x00016e7b > >>> -[java_lang_reflect_Constructor > >>> newInstance___java_lang_Object_ARRAYTYPE:] + 320 > >>> 4 de.android.ContactForms 0x00089ca4 > >>> -[android_internal_LayoutParser > >>> > createView___java_lang_String_android_content_Context_android_util_AttributeSet:::] > >>> + 1027 > >>> 5 de.android.ContactForms 0x00088883 > >>> -[android_internal_LayoutParser > >>> > didStartElement___org_xmlvm_iphone_NSXMLParser_java_lang_String_java_lang_String_java_lang_String_java_util_Map:::::] > >>> + 1000 > >>> 6 de.android.ContactForms 0x0002b6e3 > >>> -[org_xmlvm_iphone_NSXMLParserDelegate > >>> parser:didStartElement:namespaceURI:qualifiedName:attributes:] > + 130 > >>> 7 Foundation 0x005bb999 > _startElementNs > >>> + 1478 > >>> 8 libxml2.2.dylib 0x03d32ac0 > xmlParseXMLDecl > >>> + 8539 > >>> 9 libxml2.2.dylib 0x03d3b3c4 > xmlParseChunk + 1955 > >>> 10 Foundation 0x005babaa > -[NSXMLParser > >>> parse] + 321 > >>> 11 de.android.ContactForms 0x0002b608 > >>> -[NSXMLParser(cat_NSXMLParser) parse__] + 36 > >>> 12 de.android.ContactForms 0x0008787e > >>> +[android_internal_LayoutManager > >>> > getLayout___android_content_Context_int_android_view_ViewGroup:::] > + 533 > >>> 13 de.android.ContactForms 0x000c3dbf > >>> -[android_view_Window setContentView___int:] + 203 > >>> 14 de.android.ContactForms 0x00042113 > >>> -[android_app_Activity setContentView___int:] + 137 > >>> 15 de.android.ContactForms 0x00002459 > >>> -[de_android_ContactForms_ContactForm > onCreate___android_os_Bundle:] + 157 > >>> 16 de.android.ContactForms 0x00040e4e > >>> -[android_app_Activity create___java_lang_Object:] + 600 > >>> 17 Foundation 0x00500978 > >>> -[NSObject(NSThreadPerformAdditions) > >>> performSelector:onThread:withObject:waitUntilDone:modes:] + 229 > >>> 18 Foundation 0x00512f86 > >>> -[NSObject(NSThreadPerformAdditions) > >>> performSelectorOnMainThread:withObject:waitUntilDone:] + 184 > >>> 19 de.android.ContactForms 0x00029e77 > >>> +[NSObject(cat_org_xmlvm_iphone_NSObject) > >>> > performSelectorOnMainThread___java_lang_Object_java_lang_String_java_lang_Object_boolean::::] > >>> + 175 > >>> 20 de.android.ContactForms 0x000408c4 > >>> -[android_app_Activity xmlvmCreate___android_os_Bundle:] + 173 > >>> 21 de.android.ContactForms 0x0004aae7 > >>> -[android_content_Context > >>> startActivityForResult___android_content_Intent_int::] + 1528 > >>> 22 de.android.ContactForms 0x0004aeda > >>> -[android_content_Context > startActivity___android_content_Intent:] + 118 > >>> 23 de.android.ContactForms 0x00046370 > >>> -[android_app_Application onCreate__] + 707 > >>> 24 de.android.ContactForms 0x0007c619 > >>> -[android_internal_AndroidAppLauncher > >>> > applicationDidFinishLaunching___org_xmlvm_iphone_UIApplication:] + 140 > >>> 25 de.android.ContactForms 0x0002ffc9 > >>> -[org_xmlvm_iphone_UIApplicationDelegate > applicationDidFinishLaunching:] > >>> + 43 > >>> 26 UIKit 0x00782f80 > -[UIApplication > >>> _callInitializationDelegatesForURL:payload:suspended:] + 1252 > >>> 27 UIKit 0x007853b0 > -[UIApplication > >>> > _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] > + 346 > >>> 28 UIKit 0x0078f3ec > -[UIApplication > >>> handleEvent:withNewEvent:] + 1958 > >>> 29 UIKit 0x00787b3c > -[UIApplication > >>> sendEvent:] + 71 > >>> 30 UIKit 0x0078c9bf > >>> _UIApplicationHandleEvent + 7672 > >>> 31 GraphicsServices 0x03603822 > >>> PurpleEventCallback + 1550 > >>> 32 CoreFoundation 0x030a2ff4 > >>> __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52 > >>> 33 CoreFoundation 0x03003807 > >>> __CFRunLoopDoSource1 + 215 > >>> 34 CoreFoundation 0x03000a93 > __CFRunLoopRun + 979 > >>> 35 CoreFoundation 0x03000350 > >>> CFRunLoopRunSpecific + 208 > >>> 36 CoreFoundation 0x03000271 > >>> CFRunLoopRunInMode + 97 > >>> 37 UIKit 0x00784c6d > -[UIApplication > >>> _run] + 625 > >>> 38 UIKit 0x00790af2 > >>> UIApplicationMain + 1160 > >>> 39 de.android.ContactForms 0x0002fb70 > >>> +[org_xmlvm_iphone_UIApplication > >>> > main___java_lang_String_ARRAYTYPE_java_lang_Class_java_lang_Class:::] > + 565 > >>> 40 de.android.ContactForms 0x0007ca6d > >>> +[android_internal_AndroidAppLauncher > >>> main___java_lang_String_ARRAYTYPE:] + 173 > >>> 41 de.android.ContactForms 0x0007cdf0 main > + 278 > >>> 42 de.android.ContactForms 0x0000226d > start + 53 > >>> 43 ??? 0x00000001 0x0 + 1 > >>> ) > >>> terminate called after throwing an instance of 'NSException' > >>> > >>> Stil an idea what's going wrong? Shall I post the unerlying > >>> android-project with its main.xml and string.xml? > >>> > >>> Thank you > >>> Miggi > >>> > >>> > ------------------------------------------------------------------------------ > >>> Colocation vs. Managed Hosting > >>> A question and answer guide to determining the best fit > >>> for your organization - today and in the future. > >>> http://p.sf.net/sfu/internap-sfd2d > >>> _______________________________________________ > >>> xmlvm-users mailing list > >>> xml...@li... > <mailto:xml...@li...> > >>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > ------------------------------------------------------------------------------ > > Colocation vs. Managed Hosting > > A question and answer guide to determining the best fit > > for your organization - today and in the future. > > http://p.sf.net/sfu/internap-sfd2d > > _______________________________________________ > > xmlvm-users mailing list > > xml...@li... > <mailto:xml...@li...> > > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to > meet the > growing manageability and security demands of your customers. > Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your > software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > xmlvm-users mailing list > xml...@li... > <mailto:xml...@li...> > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |
From: Arno P. <ar...@pu...> - 2011-03-22 07:26:40
|
On 3/21/11 8:42 PM, Sal wrote: > 1) Apache Harmony I believe, as well as GNU classpath already have > posix-ish native implementations of most Java things. Is it a good idea > to try to port/reuse these for xmlvm somehow? Since most of these are > missing currently. Or is there a different strategy in mind? IE rewrite > these things from scratch (yikes!). Absolutely! If we can reuse Harmony's native implementation, then we should do that. XMLVM has a different memory model in the way objects are mapped, but these are usually easy things to adapt. Patches are (as usual) welcome! :) > 2) For my own app I will need URL/HTTP client type functionality, or > TCPIP sockets would work. What is the recommended method for me to > implement these components while working under the C target? I would be > happy to contribute my efforts. I would prefer more Java-ish approach > than one that uses iOS APIs. All of the HTTP stuff in Harmony is implemented in Java. It uses java.net.Socket. So, as long as the native method for sockets are implemented, HTTP should also work in its entirety. > 3) What is the purpose of the xmlvm2c/lib/proxies dir in the source > tree? When should I have to modify these sources as an xmlvm user? see the slide in xmlvm/doc/slides for an explanation. > 4) For the iOS APIs - there exist a lot of methods/tools to reflect > Objective-C code, or even parsers could be used to generate Java stubs > for the iOS APIs in bulk, that just thunk to the 'real' Objective C > APIs. Is there anyone thinking to do this yet? Would there be interest > in a script for this? Or is the plan to write all those emulation APIs > by hand (it would be an immense undertaking this route - and things > could get out of sync this way I'm thinking...) That would certainly be nice. It can probably be done but the resulting Java API might be "ugly". Perhaps it might be possible to give the tool "hints" how to map certain patterns. Arno |
From: opwoco G. <in...@op...> - 2011-03-22 07:23:45
|
Hi Wolfgang, i'm not sure about how to use android-UIs with xmlvm to create an ios project safely. 1) Can I use the standard android xml layout , generated with the Android-Interface-Builder? 2) Or must I create the layout just using code ? I'm confused because of this thread and that post below: >> I have the same issue: "when I run my application, it opens up a black window and then automatically shuts down" >> http://sourceforge.net/mailarchive/message.php?msg_id=23705695 2011/3/22 Wolfgang Korn <wol...@xm...> > Miggi, > > the widgets you are using in your little sample are all supported. From > the stack trace you sent I could see that the problem is actually caused > by a missing constructor. So I went through the classes and noticed that > Checkbox(Context, AttributeSet) is currently missing. Although adding > the constructor is simple and will make your layout work, there is one > problem left which requires some more work. Checkbox is a control which > does not exist on the iPhone. We mapped Checkbox to UISwitch. In > contrast to Android's Checkbox UISwitch does not support setting size > and text. So a more complete implementation would be mapping Checkbox to > a group of UILabel and UISwitch so that at least setting text would be > supported. > > As a workaround I suggest using separate controls for the the label and > the Checkbox in your layout. That would work after adding the missing > constructor. There is one more thing which can be helpful. We support > "IOS specific layouts". This basically means you can have a layout > resource (i.e. main.xml) which is used in case your app runs on Android. > If you have a second resource with the same name prefixed with _ios_ > (i.e. _ios_main.xml) this will be used instead of the original one when > running on IOS. This mechanism supports using widgets which are not > directly supported on IOS. In your case you can have one resource for > Android using the Checkbox as you did in your sample. However, the IOS > specific resource would use the workaround using separate Label and > Checkbox widgets. > > I will add the missing constructor to Checkbox later today. > > -- Wolfgang > > > > On 20.03.11 23:48, Miggi wrote: > > Hello Arno. > > > > This is the whole layout of my little dummy program: > > > > <ScrollView > > xmlns:android="http://schemas.android.com/apk/res/android" > > android:id="@+id/ScrollView01" > > android:scrollbars="vertical" > > android:layout_width="fill_parent" > > android:layout_height="wrap_content"> > > <LinearLayout > > android:layout_width="fill_parent" > > android:orientation="vertical" > > android:layout_height="fill_parent"> > > <TextView > > android:id="@+id/TextViewTitle" > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:text="@string/feedbacktitle" > > android:textSize="10sp"> > > </TextView> > > <EditText > > android:id="@+id/EditTextName" > > android:layout_height="wrap_content" > > android:hint="@string/feedbackname" > > android:inputType="textPersonName" > > android:layout_width="fill_parent"> > > </EditText> > > <EditText > > android:id="@+id/EditTextEmail" > > android:layout_height="wrap_content" > > android:hint="@string/feedbackemail" > > android:inputType="textEmailAddress" > > android:layout_width="fill_parent"> > > </EditText> > > <EditText > > android:id="@+id/EditTextFeedbackBody" > > android:layout_height="wrap_content" > > android:hint="@string/feedbackbody" > > android:inputType="textMultiLine" > > android:lines="5" > > android:layout_width="fill_parent"> > > </EditText> > > <CheckBox > > android:id="@+id/CheckBoxResponse" > > android:layout_height="wrap_content" > > android:text="@string/feedbackresponse" > > android:layout_width="fill_parent"> > > </CheckBox> > > <Button > > android:id="@+id/ButtonSendFeedback" > > android:layout_height="wrap_content" > > android:text="@string/feedbackbutton" > > android:onClick="sendFeedback" > > android:layout_width="fill_parent"> > > </Button> > > </LinearLayout> > > </ScrollView> > > > >> Message: 4 > >> Date: Sat, 19 Mar 2011 09:25:27 -0700 > >> From: Arno Puder<ar...@pu...> > >> Subject: Re: [xmlvm-users] Error in java_lang_reflect_Constructor > >> To: xml...@li... > >> Message-ID:<4D8...@pu...> > >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >> > >> > >> XMLVM tries to instantiate a UI element that it finds in your .xml > >> resource via Java reflection, but that particular UI element does not > >> yet exist in XMLVM. You can find the UI elements that are supported by > >> XMLVM in source folder src/android2iphone in packages android.widget and > >> android.view. > >> > >> If you tell me which UI element you are trying to use I can give you an > >> estimate on how difficult it would be to implement it in XMLVM. > >> > >> Arno > >> > >> > >> On 3/19/11 4:04 AM, Miggi wrote: > >>> After the java_lang_RuntimeException and the error in > >>> android_webkit_WebView_2 (which is gone without changing something) the > >>> project still won't run. > >>> > >>> Now I get a NSException in the class java_lang_reflect_Constructor in > >>> the method newInstance___java_lang_Object_ARRAYTYPE. > >>> > >>> Here's again the output from Xcode console: > >>> <I> <Resources>: Unable to resolve resources for > >>> de.android.ContactForms: array > >>> <I> <Resources>: Unable to resolve resources for > >>> de.android.ContactForms: dimen > >>> <I> <Resources>: Unable to resolve resources for > >>> de.android.ContactForms: raw > >>> <I> <Resources>: Unable to resolve resources for > >>> de.android.ContactForms: array > >>> <I> <Resources>: Unable to resolve resources for > >>> de.android.ContactForms: dimen > >>> <I> <Resources>: Unable to resolve resources for > >>> de.android.ContactForms: raw > >>> 2011-03-19 11:52:11.887 de.android.ContactForms[7701:207] *** > >>> Terminating app due to uncaught exception 'NSInvalidArgumentException', > >>> reason: '+[NSInvocation invocationWithMethodSignature:]: method > >>> signature argument cannot be nil' > >>> *** Call stack at first throw: > >>> ( > >>> 0 CoreFoundation 0x030c1b99 > >>> __exceptionPreprocess + 185 > >>> 1 libobjc.A.dylib 0x02eb640e > >>> objc_exception_throw + 47 > >>> 2 CoreFoundation 0x03031a59 > +[NSInvocation > >>> invocationWithMethodSignature:] + 553 > >>> 3 de.android.ContactForms 0x00016e7b > >>> -[java_lang_reflect_Constructor > >>> newInstance___java_lang_Object_ARRAYTYPE:] + 320 > >>> 4 de.android.ContactForms 0x00089ca4 > >>> -[android_internal_LayoutParser > >>> > createView___java_lang_String_android_content_Context_android_util_AttributeSet:::] > >>> + 1027 > >>> 5 de.android.ContactForms 0x00088883 > >>> -[android_internal_LayoutParser > >>> > didStartElement___org_xmlvm_iphone_NSXMLParser_java_lang_String_java_lang_String_java_lang_String_java_util_Map:::::] > >>> + 1000 > >>> 6 de.android.ContactForms 0x0002b6e3 > >>> -[org_xmlvm_iphone_NSXMLParserDelegate > >>> parser:didStartElement:namespaceURI:qualifiedName:attributes:] + 130 > >>> 7 Foundation 0x005bb999 > _startElementNs > >>> + 1478 > >>> 8 libxml2.2.dylib 0x03d32ac0 > xmlParseXMLDecl > >>> + 8539 > >>> 9 libxml2.2.dylib 0x03d3b3c4 xmlParseChunk > + 1955 > >>> 10 Foundation 0x005babaa -[NSXMLParser > >>> parse] + 321 > >>> 11 de.android.ContactForms 0x0002b608 > >>> -[NSXMLParser(cat_NSXMLParser) parse__] + 36 > >>> 12 de.android.ContactForms 0x0008787e > >>> +[android_internal_LayoutManager > >>> getLayout___android_content_Context_int_android_view_ViewGroup:::] + > 533 > >>> 13 de.android.ContactForms 0x000c3dbf > >>> -[android_view_Window setContentView___int:] + 203 > >>> 14 de.android.ContactForms 0x00042113 > >>> -[android_app_Activity setContentView___int:] + 137 > >>> 15 de.android.ContactForms 0x00002459 > >>> -[de_android_ContactForms_ContactForm onCreate___android_os_Bundle:] + > 157 > >>> 16 de.android.ContactForms 0x00040e4e > >>> -[android_app_Activity create___java_lang_Object:] + 600 > >>> 17 Foundation 0x00500978 > >>> -[NSObject(NSThreadPerformAdditions) > >>> performSelector:onThread:withObject:waitUntilDone:modes:] + 229 > >>> 18 Foundation 0x00512f86 > >>> -[NSObject(NSThreadPerformAdditions) > >>> performSelectorOnMainThread:withObject:waitUntilDone:] + 184 > >>> 19 de.android.ContactForms 0x00029e77 > >>> +[NSObject(cat_org_xmlvm_iphone_NSObject) > >>> > performSelectorOnMainThread___java_lang_Object_java_lang_String_java_lang_Object_boolean::::] > >>> + 175 > >>> 20 de.android.ContactForms 0x000408c4 > >>> -[android_app_Activity xmlvmCreate___android_os_Bundle:] + 173 > >>> 21 de.android.ContactForms 0x0004aae7 > >>> -[android_content_Context > >>> startActivityForResult___android_content_Intent_int::] + 1528 > >>> 22 de.android.ContactForms 0x0004aeda > >>> -[android_content_Context startActivity___android_content_Intent:] + > 118 > >>> 23 de.android.ContactForms 0x00046370 > >>> -[android_app_Application onCreate__] + 707 > >>> 24 de.android.ContactForms 0x0007c619 > >>> -[android_internal_AndroidAppLauncher > >>> applicationDidFinishLaunching___org_xmlvm_iphone_UIApplication:] + 140 > >>> 25 de.android.ContactForms 0x0002ffc9 > >>> -[org_xmlvm_iphone_UIApplicationDelegate > applicationDidFinishLaunching:] > >>> + 43 > >>> 26 UIKit 0x00782f80 > -[UIApplication > >>> _callInitializationDelegatesForURL:payload:suspended:] + 1252 > >>> 27 UIKit 0x007853b0 > -[UIApplication > >>> _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] > + 346 > >>> 28 UIKit 0x0078f3ec > -[UIApplication > >>> handleEvent:withNewEvent:] + 1958 > >>> 29 UIKit 0x00787b3c > -[UIApplication > >>> sendEvent:] + 71 > >>> 30 UIKit 0x0078c9bf > >>> _UIApplicationHandleEvent + 7672 > >>> 31 GraphicsServices 0x03603822 > >>> PurpleEventCallback + 1550 > >>> 32 CoreFoundation 0x030a2ff4 > >>> __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52 > >>> 33 CoreFoundation 0x03003807 > >>> __CFRunLoopDoSource1 + 215 > >>> 34 CoreFoundation 0x03000a93 > __CFRunLoopRun + 979 > >>> 35 CoreFoundation 0x03000350 > >>> CFRunLoopRunSpecific + 208 > >>> 36 CoreFoundation 0x03000271 > >>> CFRunLoopRunInMode + 97 > >>> 37 UIKit 0x00784c6d > -[UIApplication > >>> _run] + 625 > >>> 38 UIKit 0x00790af2 > >>> UIApplicationMain + 1160 > >>> 39 de.android.ContactForms 0x0002fb70 > >>> +[org_xmlvm_iphone_UIApplication > >>> main___java_lang_String_ARRAYTYPE_java_lang_Class_java_lang_Class:::] + > 565 > >>> 40 de.android.ContactForms 0x0007ca6d > >>> +[android_internal_AndroidAppLauncher > >>> main___java_lang_String_ARRAYTYPE:] + 173 > >>> 41 de.android.ContactForms 0x0007cdf0 main + 278 > >>> 42 de.android.ContactForms 0x0000226d start + 53 > >>> 43 ??? 0x00000001 0x0 + 1 > >>> ) > >>> terminate called after throwing an instance of 'NSException' > >>> > >>> Stil an idea what's going wrong? Shall I post the unerlying > >>> android-project with its main.xml and string.xml? > >>> > >>> Thank you > >>> Miggi > >>> > >>> > ------------------------------------------------------------------------------ > >>> Colocation vs. Managed Hosting > >>> A question and answer guide to determining the best fit > >>> for your organization - today and in the future. > >>> http://p.sf.net/sfu/internap-sfd2d > >>> _______________________________________________ > >>> xmlvm-users mailing list > >>> xml...@li... > >>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > ------------------------------------------------------------------------------ > > Colocation vs. Managed Hosting > > A question and answer guide to determining the best fit > > for your organization - today and in the future. > > http://p.sf.net/sfu/internap-sfd2d > > _______________________________________________ > > xmlvm-users mailing list > > xml...@li... > > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Wolfgang K. <wol...@xm...> - 2011-03-22 06:54:13
|
Miggi, the widgets you are using in your little sample are all supported. From the stack trace you sent I could see that the problem is actually caused by a missing constructor. So I went through the classes and noticed that Checkbox(Context, AttributeSet) is currently missing. Although adding the constructor is simple and will make your layout work, there is one problem left which requires some more work. Checkbox is a control which does not exist on the iPhone. We mapped Checkbox to UISwitch. In contrast to Android's Checkbox UISwitch does not support setting size and text. So a more complete implementation would be mapping Checkbox to a group of UILabel and UISwitch so that at least setting text would be supported. As a workaround I suggest using separate controls for the the label and the Checkbox in your layout. That would work after adding the missing constructor. There is one more thing which can be helpful. We support "IOS specific layouts". This basically means you can have a layout resource (i.e. main.xml) which is used in case your app runs on Android. If you have a second resource with the same name prefixed with _ios_ (i.e. _ios_main.xml) this will be used instead of the original one when running on IOS. This mechanism supports using widgets which are not directly supported on IOS. In your case you can have one resource for Android using the Checkbox as you did in your sample. However, the IOS specific resource would use the workaround using separate Label and Checkbox widgets. I will add the missing constructor to Checkbox later today. -- Wolfgang On 20.03.11 23:48, Miggi wrote: > Hello Arno. > > This is the whole layout of my little dummy program: > > <ScrollView > xmlns:android="http://schemas.android.com/apk/res/android" > android:id="@+id/ScrollView01" > android:scrollbars="vertical" > android:layout_width="fill_parent" > android:layout_height="wrap_content"> > <LinearLayout > android:layout_width="fill_parent" > android:orientation="vertical" > android:layout_height="fill_parent"> > <TextView > android:id="@+id/TextViewTitle" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="@string/feedbacktitle" > android:textSize="10sp"> > </TextView> > <EditText > android:id="@+id/EditTextName" > android:layout_height="wrap_content" > android:hint="@string/feedbackname" > android:inputType="textPersonName" > android:layout_width="fill_parent"> > </EditText> > <EditText > android:id="@+id/EditTextEmail" > android:layout_height="wrap_content" > android:hint="@string/feedbackemail" > android:inputType="textEmailAddress" > android:layout_width="fill_parent"> > </EditText> > <EditText > android:id="@+id/EditTextFeedbackBody" > android:layout_height="wrap_content" > android:hint="@string/feedbackbody" > android:inputType="textMultiLine" > android:lines="5" > android:layout_width="fill_parent"> > </EditText> > <CheckBox > android:id="@+id/CheckBoxResponse" > android:layout_height="wrap_content" > android:text="@string/feedbackresponse" > android:layout_width="fill_parent"> > </CheckBox> > <Button > android:id="@+id/ButtonSendFeedback" > android:layout_height="wrap_content" > android:text="@string/feedbackbutton" > android:onClick="sendFeedback" > android:layout_width="fill_parent"> > </Button> > </LinearLayout> > </ScrollView> > >> Message: 4 >> Date: Sat, 19 Mar 2011 09:25:27 -0700 >> From: Arno Puder<ar...@pu...> >> Subject: Re: [xmlvm-users] Error in java_lang_reflect_Constructor >> To: xml...@li... >> Message-ID:<4D8...@pu...> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >> >> XMLVM tries to instantiate a UI element that it finds in your .xml >> resource via Java reflection, but that particular UI element does not >> yet exist in XMLVM. You can find the UI elements that are supported by >> XMLVM in source folder src/android2iphone in packages android.widget and >> android.view. >> >> If you tell me which UI element you are trying to use I can give you an >> estimate on how difficult it would be to implement it in XMLVM. >> >> Arno >> >> >> On 3/19/11 4:04 AM, Miggi wrote: >>> After the java_lang_RuntimeException and the error in >>> android_webkit_WebView_2 (which is gone without changing something) the >>> project still won't run. >>> >>> Now I get a NSException in the class java_lang_reflect_Constructor in >>> the method newInstance___java_lang_Object_ARRAYTYPE. >>> >>> Here's again the output from Xcode console: >>> <I> <Resources>: Unable to resolve resources for >>> de.android.ContactForms: array >>> <I> <Resources>: Unable to resolve resources for >>> de.android.ContactForms: dimen >>> <I> <Resources>: Unable to resolve resources for >>> de.android.ContactForms: raw >>> <I> <Resources>: Unable to resolve resources for >>> de.android.ContactForms: array >>> <I> <Resources>: Unable to resolve resources for >>> de.android.ContactForms: dimen >>> <I> <Resources>: Unable to resolve resources for >>> de.android.ContactForms: raw >>> 2011-03-19 11:52:11.887 de.android.ContactForms[7701:207] *** >>> Terminating app due to uncaught exception 'NSInvalidArgumentException', >>> reason: '+[NSInvocation invocationWithMethodSignature:]: method >>> signature argument cannot be nil' >>> *** Call stack at first throw: >>> ( >>> 0 CoreFoundation 0x030c1b99 >>> __exceptionPreprocess + 185 >>> 1 libobjc.A.dylib 0x02eb640e >>> objc_exception_throw + 47 >>> 2 CoreFoundation 0x03031a59 +[NSInvocation >>> invocationWithMethodSignature:] + 553 >>> 3 de.android.ContactForms 0x00016e7b >>> -[java_lang_reflect_Constructor >>> newInstance___java_lang_Object_ARRAYTYPE:] + 320 >>> 4 de.android.ContactForms 0x00089ca4 >>> -[android_internal_LayoutParser >>> createView___java_lang_String_android_content_Context_android_util_AttributeSet:::] >>> + 1027 >>> 5 de.android.ContactForms 0x00088883 >>> -[android_internal_LayoutParser >>> didStartElement___org_xmlvm_iphone_NSXMLParser_java_lang_String_java_lang_String_java_lang_String_java_util_Map:::::] >>> + 1000 >>> 6 de.android.ContactForms 0x0002b6e3 >>> -[org_xmlvm_iphone_NSXMLParserDelegate >>> parser:didStartElement:namespaceURI:qualifiedName:attributes:] + 130 >>> 7 Foundation 0x005bb999 _startElementNs >>> + 1478 >>> 8 libxml2.2.dylib 0x03d32ac0 xmlParseXMLDecl >>> + 8539 >>> 9 libxml2.2.dylib 0x03d3b3c4 xmlParseChunk + 1955 >>> 10 Foundation 0x005babaa -[NSXMLParser >>> parse] + 321 >>> 11 de.android.ContactForms 0x0002b608 >>> -[NSXMLParser(cat_NSXMLParser) parse__] + 36 >>> 12 de.android.ContactForms 0x0008787e >>> +[android_internal_LayoutManager >>> getLayout___android_content_Context_int_android_view_ViewGroup:::] + 533 >>> 13 de.android.ContactForms 0x000c3dbf >>> -[android_view_Window setContentView___int:] + 203 >>> 14 de.android.ContactForms 0x00042113 >>> -[android_app_Activity setContentView___int:] + 137 >>> 15 de.android.ContactForms 0x00002459 >>> -[de_android_ContactForms_ContactForm onCreate___android_os_Bundle:] + 157 >>> 16 de.android.ContactForms 0x00040e4e >>> -[android_app_Activity create___java_lang_Object:] + 600 >>> 17 Foundation 0x00500978 >>> -[NSObject(NSThreadPerformAdditions) >>> performSelector:onThread:withObject:waitUntilDone:modes:] + 229 >>> 18 Foundation 0x00512f86 >>> -[NSObject(NSThreadPerformAdditions) >>> performSelectorOnMainThread:withObject:waitUntilDone:] + 184 >>> 19 de.android.ContactForms 0x00029e77 >>> +[NSObject(cat_org_xmlvm_iphone_NSObject) >>> performSelectorOnMainThread___java_lang_Object_java_lang_String_java_lang_Object_boolean::::] >>> + 175 >>> 20 de.android.ContactForms 0x000408c4 >>> -[android_app_Activity xmlvmCreate___android_os_Bundle:] + 173 >>> 21 de.android.ContactForms 0x0004aae7 >>> -[android_content_Context >>> startActivityForResult___android_content_Intent_int::] + 1528 >>> 22 de.android.ContactForms 0x0004aeda >>> -[android_content_Context startActivity___android_content_Intent:] + 118 >>> 23 de.android.ContactForms 0x00046370 >>> -[android_app_Application onCreate__] + 707 >>> 24 de.android.ContactForms 0x0007c619 >>> -[android_internal_AndroidAppLauncher >>> applicationDidFinishLaunching___org_xmlvm_iphone_UIApplication:] + 140 >>> 25 de.android.ContactForms 0x0002ffc9 >>> -[org_xmlvm_iphone_UIApplicationDelegate applicationDidFinishLaunching:] >>> + 43 >>> 26 UIKit 0x00782f80 -[UIApplication >>> _callInitializationDelegatesForURL:payload:suspended:] + 1252 >>> 27 UIKit 0x007853b0 -[UIApplication >>> _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 346 >>> 28 UIKit 0x0078f3ec -[UIApplication >>> handleEvent:withNewEvent:] + 1958 >>> 29 UIKit 0x00787b3c -[UIApplication >>> sendEvent:] + 71 >>> 30 UIKit 0x0078c9bf >>> _UIApplicationHandleEvent + 7672 >>> 31 GraphicsServices 0x03603822 >>> PurpleEventCallback + 1550 >>> 32 CoreFoundation 0x030a2ff4 >>> __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52 >>> 33 CoreFoundation 0x03003807 >>> __CFRunLoopDoSource1 + 215 >>> 34 CoreFoundation 0x03000a93 __CFRunLoopRun + 979 >>> 35 CoreFoundation 0x03000350 >>> CFRunLoopRunSpecific + 208 >>> 36 CoreFoundation 0x03000271 >>> CFRunLoopRunInMode + 97 >>> 37 UIKit 0x00784c6d -[UIApplication >>> _run] + 625 >>> 38 UIKit 0x00790af2 >>> UIApplicationMain + 1160 >>> 39 de.android.ContactForms 0x0002fb70 >>> +[org_xmlvm_iphone_UIApplication >>> main___java_lang_String_ARRAYTYPE_java_lang_Class_java_lang_Class:::] + 565 >>> 40 de.android.ContactForms 0x0007ca6d >>> +[android_internal_AndroidAppLauncher >>> main___java_lang_String_ARRAYTYPE:] + 173 >>> 41 de.android.ContactForms 0x0007cdf0 main + 278 >>> 42 de.android.ContactForms 0x0000226d start + 53 >>> 43 ??? 0x00000001 0x0 + 1 >>> ) >>> terminate called after throwing an instance of 'NSException' >>> >>> Stil an idea what's going wrong? Shall I post the unerlying >>> android-project with its main.xml and string.xml? >>> >>> Thank you >>> Miggi >>> >>> ------------------------------------------------------------------------------ >>> Colocation vs. Managed Hosting >>> A question and answer guide to determining the best fit >>> for your organization - today and in the future. >>> http://p.sf.net/sfu/internap-sfd2d >>> _______________________________________________ >>> xmlvm-users mailing list >>> xml...@li... >>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Sal <sv...@gm...> - 2011-03-22 03:43:00
|
I just repeated the process on my Macbook with XCode. It all works great! iFireworks compiled and ran. I normally develop on a non-mac though, so I would be *very* interested in the posix target working under win or linux. But not a major priority - I can work in plain Java elsewhere and just port the missing parts on the Mac potentially. A couple questions as now I'm building my own custom application components. 1) Apache Harmony I believe, as well as GNU classpath already have posix-ish native implementations of most Java things. Is it a good idea to try to port/reuse these for xmlvm somehow? Since most of these are missing currently. Or is there a different strategy in mind? IE rewrite these things from scratch (yikes!). 2) For my own app I will need URL/HTTP client type functionality, or TCPIP sockets would work. What is the recommended method for me to implement these components while working under the C target? I would be happy to contribute my efforts. I would prefer more Java-ish approach than one that uses iOS APIs. 3) What is the purpose of the xmlvm2c/lib/proxies dir in the source tree? When should I have to modify these sources as an xmlvm user? 4) For the iOS APIs - there exist a lot of methods/tools to reflect Objective-C code, or even parsers could be used to generate Java stubs for the iOS APIs in bulk, that just thunk to the 'real' Objective C APIs. Is there anyone thinking to do this yet? Would there be interest in a script for this? Or is the plan to write all those emulation APIs by hand (it would be an immense undertaking this route - and things could get out of sync this way I'm thinking...) Great work on all this, thanks much for the help so far, its a great team here! - Sal On Mon, Mar 21, 2011 at 12:49 PM, Arno Puder <ar...@pu...> wrote: > The version of Boehm GC that is bundled with XMLVM is specifically for > iOS and shouldn't be used for other platforms. I had meant to change > the Makefile for Posix platforms to rely on an external installation > of Boehm GC for the respective platform. I will do that soon. > > Arno > > > On Mar 21, 2011, at 9:34 AM, Sal <sv...@gm...> wrote: > > > My fault. Eclipse errors due to my coniguration, I rebuilt, that > > error was resolved. > > > > Now: > > > > gcc -w -std=c99 -I../src -c ../src/mark.c -o build/obj/mark.o > > ../src/mark.c: In function `GC_mark_some': > > ../src/mark.c:544: error: `asm' undeclared (first use in this function) > > ../src/mark.c:544: error: (Each undeclared identifier is reported only > once > > ../src/mark.c:544: error: for each function it appears in.) > > ../src/mark.c:544: error: syntax error before "volatile" > > ../src/mark.c:553: error: syntax error before "volatile" > > make: *** [build/obj/mark.o] Error 1 > > > > I am using mingw32 - trying to compile the Posix target - should this > > be usable yet? > > > > On 3/21/11, Arno Puder <ar...@pu...> wrote: > >> Can you please try "ant clean" and re-build XMLVM? > >> > >> Arno > >> > >> On Mar 21, 2011, at 8:20 AM, Sal <sv...@gm...> wrote: > >> > >>> Arno - > >>> > >>> Currently getting an error from a fresh SVN checkout. Using 'make' > >>> after the command: > >>> > >>> java -Xmx700m -jar dist/xmlvm.jar --target=posix > >>> --in=bin/org/xmlvm/test/ReflectionTest.class --out=ReflectionTest > >>> > >>> gcc -w -std=c99 -I../src -c ../src/java_lang_Object.c -o > >>> build/obj/java_lang_Obj > >>> ect.o > >>> ../src/java_lang_Object.c:3:43: java_lang_Object_AddedMembers.h: No > such > >>> file or > >>> directory > >>> ../src/java_lang_Object.c:35: error: > >>> `__CLASS_java_lang_Object_AddedMembers' und > >>> eclared here (not in a function) > >>> ../src/java_lang_Object.c:35: error: initializer element is not > constant > >>> ../src/java_lang_Object.c:35: error: (near initialization for > >>> `__field_reflectio > >>> n_data[1].type') > >>> ../src/java_lang_Object.c:40: error: initializer element is not > constant > >>> ../src/java_lang_Object.c:40: error: (near initialization for > >>> `__field_reflectio > >>> n_data[1]') > >>> make: *** [build/obj/java_lang_Object.o] Error 1 > >>> > >>> On 3/18/11, Sal <sv...@gm...> wrote: > >>>> I'll begin the search for those posts, then - thanks much for the tip, > >>>> Arno. > >>>> > >>>> Potentially if I get it to work I'd like to help make it automated - > >>>> possibly add some Ant logic to take care of the things needed? Just > to > >>>> make > >>>> it easier to stay in sync with all the great, exciting work you guys > are > >>>> doing here. Let me know any thoughts on this, > >>>> > >>>> Thanks again for all the help, > >>>> > >>>> - Sal > >>>> > >>>> On Mar 18, 2011, at 3:09 AM, Arno Puder <ar...@pu...> wrote: > >>>> > >>>>> > >>>>> the default targets are still using the Objective-C backend (what is > >>>>> described in the documentation). The C backend is still > >>>>> work-in-progress. Do a grep on this mailing list and you will find > some > >>>>> posts that explain how to cross-compile iFireworks using the C > backend. > >>>>> > >>>>> We are making good progress on the C backend but it will take some > more > >>>>> time to make the switch. I will send an update sometime soon. > >>>>> > >>>>> Arno > >>>>> > >>>>> > >>>>> On 3/18/11 12:06 AM, Sal wrote: > >>>>>> Thanks for the link! > >>>>>> > >>>>>> However I don't see mention of the 'C' target or Harmony support - > is > >>>>>> this all handled by one of the generic targets? Or has to be > configured > >>>>>> explicitly at the command line when building? I do see mention of > the > >>>>>> objc and c++ things. > >>>>>> > >>>>>> Thanks again for the help, I will shortly attempt a fresh checkout > and > >>>>>> build of the codebase. > >>>>>> > >>>>>> On Mar 18, 2011, at 2:50 AM, opwoco GbR <in...@op... > >>>>>> <mailto:in...@op...>> wrote: > >>>>>> > >>>>>>> Hi sal, > >>>>>>> > >>>>>>> send a piece of the command line output to see what's happen.. > >>>>>>> > >>>>>>> > >>>>>>> to run one of the demo projects take a look the Documentation at > >>>>>>> <http://xmlvm.org>xmlvm.org <http://xmlvm.org>: > >>>>>>> directlink: > >>>>>>> < > https://sites.google.com/a/xmlvm.org/documentation/#TOC-How-to-run-an-XMLVM-project > > > https://sites.google.com/a/xmlvm.org/documentation/#TOC-How-to-run-an-XMLVM-project > >>>>>>> < > https://sites.google.com/a/xmlvm.org/documentation/#TOC-How-to-run-an-XMLVM-project > > > >>>>>>> > >>>>>>> 2011/3/18 Sal <<mailto:sv...@gm...>sv...@gm... > >>>>>>> <mailto:sv...@gm...>> > >>>>>>> > >>>>>>> > >>>>>>> What are the steps to get a simple 'hello world' iPhone app up and > >>>>>>> running from the latest SVN snapshot? Possibly with the Harmony > >>>>>>> support included? (printing to standard out is fine, I understand > >>>>>>> ui is underway). > >>>>>>> > >>>>>>> I read through the manual, but the c target didn't seem > >>>>>>> mentioned... Maybe I missed it, if so apologies - if there are > >>>>>>> docs I'll try those. > >>>>>>> > >>>>>>> I tried (quickly) a svn download and running the ant scripts but > >>>>>>> lots of errors with JDK classes missing, etc. I was wondering what > >>>>>>> the 'proper' way was to hack through it before I started > debugging. > >>>>>>> > >>>>>>> If it works I would be happy to put together a wiki page on it, > >>>>>>> possibly put binaries someplace for other newbies to use as well > >>>>>>> to help with getting Java apps compiled on iOS. > >>>>>>> > >>>>>>> Thanks in advance, > >>>>>>> > >>>>>>> Sal > >>>>>>> > >>>>>>> > ------------------------------------------------------------------------------ > >>>>>>> Colocation vs. Managed Hosting > >>>>>>> A question and answer guide to determining the best fit > >>>>>>> for your organization - today and in the future. > >>>>>>> > >>>>>>> <http://p.sf.net/sfu/internap-sfd2d> > http://p.sf.net/sfu/internap-sfd2d > >>>>>>> _______________________________________________ > >>>>>>> xmlvm-users mailing list > >>>>>>> > >>>>>>> <mailto:xml...@li...> > xml...@li... > >>>>>>> <mailto:xml...@li...> > >>>>>>> > >>>>>>> <https://lists.sourceforge.net/lists/listinfo/xmlvm-users> > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > >>>>>>> > >>>>>>> > >>>>>> > >>>>>> > >>>>>> > ------------------------------------------------------------------------------ > >>>>>> Colocation vs. Managed Hosting > >>>>>> A question and answer guide to determining the best fit > >>>>>> for your organization - today and in the future. > >>>>>> http://p.sf.net/sfu/internap-sfd2d > >>>>>> > >>>>>> > >>>>>> > >>>>>> _______________________________________________ > >>>>>> xmlvm-users mailing list > >>>>>> xml...@li... > >>>>>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users > >>>>> > >>>>> > ------------------------------------------------------------------------------ > >>>>> Colocation vs. Managed Hosting > >>>>> A question and answer guide to determining the best fit > >>>>> for your organization - today and in the future. > >>>>> http://p.sf.net/sfu/internap-sfd2d > >>>>> _______________________________________________ > >>>>> xmlvm-users mailing list > >>>>> xml...@li... > >>>>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users > >>>> > >> > |