wood burning stoves 2.0*
The moose likes Android and the fly likes Cross platform development (iPhone/Android/etc.) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Cross platform development (iPhone/Android/etc.)" Watch "Cross platform development (iPhone/Android/etc.)" New topic
Author

Cross platform development (iPhone/Android/etc.)

Scott Szretter
Greenhorn

Joined: Mar 24, 2009
Posts: 3
Hi, just wondering what people know is out there for 'cross platform' development solutions?

For example, xmlvm.org takes bytecode and converts it to xml, then generates appropriate code (objective-c) - so as I understand it, you can develop in java for android, and then convert your app over to iphone...

Are there any other solutions or thoughts people have on this?
Fred Grott
Ranch Hand

Joined: Oct 05, 2002
Posts: 346
You could do a hybrid mobile app using webview since both Android and iPhone use webkit


MobileBytes blog - Sharing Technology - My Programming Knols
Scott Szretter
Greenhorn

Joined: Mar 24, 2009
Posts: 3
Yes, in fact that is what I am doing currently, the issue so far is the speed - as the application grows (an ajax style app) and more javascript is being downloaded, the load time is getting worse, and I have found that the ajax xml requests loading lists of data is not very fast. Some of my lists are fast as long as the data is very small, like a list of phone numbers and an identifier. But once I start adding more info, like a first/last name and a city/state to the output list, it really slows it down. In this case it appears to be the speed of the draw of the list, not the communications. It might be an issue with my code, I have not ruled that out, but the same code in a 'desktop' browser is lightning fast.

Anyway, that is why I am looking at the pure native route, but it would be nice to be able to leverage a code base and at least with minimal effort port it to other platforms like Android.
Fred Grott
Ranch Hand

Joined: Oct 05, 2002
Posts: 346
move js files to assts folder instead of downloading them.

Alos certain DOM ajax styles are bad performance hits ie iUI i sba dbut CiUI is good and the only change was the way ajax DOm was handled in both libraries
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Cross platform development (iPhone/Android/etc.)