From: Dr. A. K. S. <al...@se...> - 2010-02-01 10:03:58
|
Sorry, that was a mistake from my side. Now I know that the java code gives the interface and the objectiveC directory gives the actual code to be run on the device. I did adapt the java classes when additional methods were needed (such as UIAlertView.show() and dismiss()), but only did the implementation in the objectiveC code - hope that's ok. Best, Alex On Mon, Feb 01, 2010 at 08:22:09AM +0000, xml...@li... wrote: > 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: Android textSize, textColor, background tags (in > activity.xml) (Arno Puder) > 2. localized strings et al. (Dr. Alexander K. Seewald) > 3. iPad SDK Support? (Lennie De Villiers) > 4. Re: iPad SDK Support? (Sascha Haeberling) > 5. Re: iPad SDK Support? (Arno Puder) > 6. Camera-Methods (Christian Mansch) > 7. Re: Camera-Methods (Arno Puder) > 8. IPad Support (len...@gm...) > 9. Unicode characters in Java Strings when compiling to > Objective C. (William Woody) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 21 Jan 2010 16:39:15 -0800 > From: Arno Puder <ar...@pu...> > Subject: Re: [xmlvm-users] Android textSize, textColor, background > tags (in activity.xml) > To: xml...@li... > Message-ID: <4B5...@pu...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > of course it shouldn't happen if the Java and Objective-C side are out > of sync. Can you give an example? I would expect a segfault in that case. > > Arno > > > Dr. Alexander K. Seewald wrote: > > Hi all, > > > > I've just implemented the textColor and textSize tags for Android, > > and extended the background tag to take simple color names as well > > as the #FF123456 hex code notation (alpha,r,g,b)... again a > > scattering of small changes. > > > > The xmlvm/src/xmlvm2objc/compat-lib/ directory has java and objc > > subdirectories which do not seem to be synchronized. Initially I > > implemented parts in Java and then found out that this has no effect > > when compiling for iPhone... so I implemented the objc parts as well. > > > > Is it deliberately done that the code in the java directory is not > > compiled via xmlvm to objc code? Would it be possible to convert > > specific java files to save on half the development effort? ;-) > > > > Best, > > Alex > > > > ------------------------------ > > Message: 2 > Date: Fri, 22 Jan 2010 15:46:51 +0100 > From: "Dr. Alexander K. Seewald" <al...@se...> > Subject: [xmlvm-users] localized strings et al. > To: xml...@li... > Message-ID: <201...@sd...> > Content-Type: text/plain; charset=us-ascii > > Hi, > > I've just uploaded another patch set that supports localized > strings (via getString() and in the activity.xml file) and the > textSize/Color/Background tags. > > I found that the mapping of java strings is slightly incorrect: the > strings from... > return stringMap.get(new Integer(id)).replaceAll("\\\\n","\\n").replaceAll("\\",""); > > get mapped like this: > \\n -> @"\n" (i.e. the line feed character 0x0a - a string of > length 1) > \\\\n -> @"\\n" (i.e. '\n' - two characters, one backslash followed > by 'n') > \\ -> @"\" > - the last of which gives an error during compilation. The others > seem ok. > > Similar to the float and double constants NaN which need to be > called NAN in objectiveC, this can be solved by postprocessing with > vi... > vi Target.m -c ':%s/NaN/NAN/' -c ':%s/@"\\"/@"\\\\"/' -c ':wq' > > Best, > Alex > -- > Dr. Alexander K. Seewald > > Seewald Solutions > www.seewald.at > Tel. +43(664)1106886 > Fax. +43(1)2533033/2764 > > > > ------------------------------ > > Message: 3 > Date: Thu, 28 Jan 2010 15:47:41 +0200 > From: Lennie De Villiers <len...@gm...> > Subject: [xmlvm-users] iPad SDK Support? > To: xml...@li... > Message-ID: > <a9c...@ma...> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi, > > Will XMLVM support the iPad SDK? > > cheers > > Lennie > > -- > Lennie De Villiers Blog: http://lenniedevilliers.blogspot.com/ > > > > ------------------------------ > > Message: 4 > Date: Thu, 28 Jan 2010 16:01:23 +0100 > From: Sascha Haeberling <sa...@xm...> > Subject: Re: [xmlvm-users] iPad SDK Support? > To: Lennie De Villiers <len...@gm...> > Cc: xml...@li... > Message-ID: > <709...@ma...> > Content-Type: text/plain; charset="iso-8859-1" > > I was waiting for that question! :D > > Well, I haven't actually looked at the iPad SDK yet. Fact of the matter is, > that iPhone application will just run. So every app compiled with XMLVM > should run on an iPad. > > Keep in mind that our primary goal right now is cross-compiling Android > Apps. So the question is, does the iPad API have any functionality that > Android already has but the iPhone doesn't. I think it will definitely get > interesting in terms of skaling, especially when we see Android Netbooks and > tablets out there, that don't have that small phone screen. Then you might > think about targeting the iPad specifically. At the moment, with just > Android phones, I don't think you would target the iPad, except for the > iPhone compatibility mode. > > But that just my first assumption/analysis. > > // Sascha > > On Thu, Jan 28, 2010 at 2:47 PM, Lennie De Villiers <len...@gm...>wrote: > > > Hi, > > > > Will XMLVM support the iPad SDK? > > > > cheers > > > > Lennie > > > > -- > > Lennie De Villiers Blog: http://lenniedevilliers.blogspot.com/ > > > > > > ------------------------------------------------------------------------------ > > The Planet: dedicated and managed hosting, cloud storage, colocation > > Stay online with enterprise data centers and the best network in the > > business > > Choose flexible plans and management services without long-term contracts > > Personal 24x7 support from experience hosting pros just a phone call away. > > http://p.sf.net/sfu/theplanet-com > > _______________________________________________ > > xmlvm-users mailing list > > xml...@li... > > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 5 > Date: Thu, 28 Jan 2010 10:35:45 -0800 > From: Arno Puder <ar...@pu...> > Subject: Re: [xmlvm-users] iPad SDK Support? > To: xml...@li... > Message-ID: <4B6...@pu...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > we'll have to take a closer look at the SDK. I would assume that it is > not that much different from the regular iPhone OS API. I think XMLVM is > in a good position to target the iPad. We already support Android's > layout managers which make is much easier to write apps for different > screen resolutions. > > One bigger TODO that comes to mind is our own Java Emulator. That would > need to be changed for the iPad. > > Arno > > > On 1/28/10 5:47 AM, Lennie De Villiers wrote: > > Hi, > > > > Will XMLVM support the iPad SDK? > > > > cheers > > > > Lennie > > > > > > ------------------------------ > > Message: 6 > Date: Sat, 30 Jan 2010 14:56:41 +0100 > From: Christian Mansch <c.m...@we...> > Subject: [xmlvm-users] Camera-Methods > To: xml...@li... > Message-ID: <989...@we...> > Content-Type: text/plain; charset=iso-8859-15 > > Hello, > > is it possible to use the some camera-functions in xmlvm? > or is it not currently not implemented? > > Greetings Chris > ________________________________________________________________ > Nur noch bis 31.01.2010: DSL Komplettpaket f?r 16,99 Euro/mtl.!* > http://produkte.web.de/go/02/ > > > > > ------------------------------ > > Message: 7 > Date: Sat, 30 Jan 2010 10:01:35 -0800 > From: Arno Puder <ar...@pu...> > Subject: Re: [xmlvm-users] Camera-Methods > To: xml...@li... > Message-ID: <4B6...@pu...> > Content-Type: text/plain; charset=ISO-8859-15; format=flowed > > > XMLVM currently does not support the camera API, but it shouldn't be > overly hard to implement. > > Arno > > > On 1/30/10 5:56 AM, Christian Mansch wrote: > > Hello, > > > > is it possible to use the some camera-functions in xmlvm? > > or is it not currently not implemented? > > > > Greetings Chris > > ________________________________________________________________ > > Nur noch bis 31.01.2010: DSL Komplettpaket f?r 16,99 Euro/mtl.!* > > http://produkte.web.de/go/02/ > > > > > > ------------------------------------------------------------------------------ > > The Planet: dedicated and managed hosting, cloud storage, colocation > > Stay online with enterprise data centers and the best network in the business > > Choose flexible plans and management services without long-term contracts > > Personal 24x7 support from experience hosting pros just a phone call away. > > http://p.sf.net/sfu/theplanet-com > > _______________________________________________ > > xmlvm-users mailing list > > xml...@li... > > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > > ------------------------------ > > Message: 8 > Date: Sat, 30 Jan 2010 19:47:28 +0000 > From: len...@gm... > Subject: [xmlvm-users] IPad Support > To: xml...@li... > Message-ID: > <122...@bd...duk.on.blackberry> > > Content-Type: text/plain > > Hi, am gonna start on ipad sdk support. > Sent via my BlackBerry from Vodacom - let your email find you! > > > > ------------------------------ > > Message: 9 > Date: Mon, 1 Feb 2010 00:21:41 -0800 > From: William Woody <wo...@al...> > Subject: [xmlvm-users] Unicode characters in Java Strings when > compiling to Objective C. > To: xml...@li... > Message-ID: <20E...@al...> > Content-Type: text/plain; charset="us-ascii" > > I'm using XMLVM to cross-compile some math routines to be embedded into an iPhone/iPad application. One of the problems I ran across was that when a unicode character was added as part of a Java string ("\uxxxx"), it was being emitted in the Objective C code as "\xxxxx", with the characters as octal characters. > > The following change causes characters to be output as unicode characters instead: > > Around lines 812-822 of DEXmlvmOutputProcess.java (org.xmlvm.proc.out), replace: > > } else if (constant instanceof CstString) { > CstString cstString = (CstString) constant; > String valueOriginal = cstString.getString().getString(); > String value = ""; > // Convert special characters in string to octal notation > for (int i = 0; i < valueOriginal.length(); i++) { > char ch = valueOriginal.charAt(i); > value += (ch < ' ' || ch > 'z') ? String.format("\\%03o", new Integer(ch)) > : ch; > } > dexInstruction.setAttribute("value", value); > > with > > } else if (constant instanceof CstString) { > CstString cstString = (CstString) constant; > String valueOriginal = cstString.getString().getString(); > String value = ""; > // Convert special characters in string to octal notation > for (int i = 0; i < valueOriginal.length(); i++) { > char ch = valueOriginal.charAt(i); > value += (ch < ' ' || ch > 'z') ? String.format("\\u%04x", new Integer(ch)) > // ^^^^^^^^^^ Change here. > : ch; > } > dexInstruction.setAttribute("value", value); > > > > Of course this is sub-optimal, given that this only works if targeting Objective C platforms, where "\uxxxx" is an accepted unicode character escape. But I'm putting it out there for what it's worth. > > - Bill Woody > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: smime.p7s > Type: application/pkcs7-signature > Size: 4667 bytes > Desc: not available > > ------------------------------ > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > > ------------------------------ > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > > End of xmlvm-users Digest, Vol 8, Issue 1 > ***************************************** |