Ask HN: Best way to write an app for both Android and iOS?
21–30 of 54 posts
Re: Ask HN: Best way to write an app for both Android and iOS?
#22C++ on android? I hadn't heard of that.
I'm playing with it at the moment. It might seem a bit frustrating first, with all those JNI naming conventions and getting it to integrate with Eclipse, but hopefully it's performance will make up for it.
Re: Ask HN: Best way to write an app for both Android and iOS?
#23You can check out Corona from Ansca as well: http://www.anscamobile.com/ This IDE is geared for graphical oriented apps (games).
Corona looks good (even if we're not doing a game) but as students a free solution would be better.
How about $49.
Re: Ask HN: Best way to write an app for both Android and iOS?
#24If you want the best user (and developer) experience, write 2 different codebases and share graphical assets. Even though you could write portable C++, the API for getting to the hardware is going to be pretty different. I have worked on a project where we developed an app with identical look and feel on both Android and iOS simultaneously. The UI was basically completely custom (designed in Photoshop by a 3rd party)…
Re: Ask HN: Best way to write an app for both Android and iOS?
#25I think you should take a look at Titanium from Appcelerator (http://www.appcelerator.com). For data-driven applications or native apps that don't require advanced 3D animations, it does a very good job providing a native user experience and access to device APIs. To describe how it works briefly, you write JavaScript code which maps to native APIs - that code is then included in a native app binary along with a JavaScript interpreter, and is interpreted at runtime on the device. A better/longer explanation is here:
http://stackoverflow.com/questions/4217551/what-happens-to-j...
Titanium has been deployed in over 12,000 apps in the Android Market/App Store, more than any other cross-platform framework (that we know of), so many developers have found success using it. That said, no technology is a silver bullet, so you'll need to take a look at your application and decide what is the right move for you.
If at some point while using Titanium, you discover you need more native functionality than we currently expose, it's easy to write a native extension (well, easy if you know Objective C and Java). Guides are located at:
http://guides.appcelerator.com/en/module_ios.html
http://guides.appcelerator.com/en/module_android.html
Despite the success we see every day by devs using the platform, Titanium can be a bit flaky at times - and I'm sorry to hear some folks have run into problems with their specific use cases. Feel free to reach out to me directly (community@appcelerator.com goes to my inbox) and I'd be happy to help out.
EDIT: We actually just demoed an AR app using the device camera, but the source isn't up yet (not sure why not, but it will be open source). If you follow our dev blog (developer.appcelerator.com) or keep up with our GitHub account (github.com/appcelerator), the source will pop up there.
Re: Ask HN: Best way to write an app for both Android and iOS?
#26Depends on what kind of app I suppose, but if it is anything to do with 2D gaming, I'm totally loving Corona so far. I come from a web background (php/javascript) and I'm lost on Objective-C. But I picked up the basics of Lua in about a day and the next day had built a simple game. It's wickedly fast to get to grips with and the documentation is detailed and easy to read. http://www.anscamobile.com/corona/
If they ever decided to go the Appcelerator work and come up with a deployment that also targets OSX and Windows at the same time, they'd absolutely rule.
Re: Ask HN: Best way to write an app for both Android and iOS?
#27Depends on what kind of app I suppose, but if it is anything to do with 2D gaming, I'm totally loving Corona so far. I come from a web background (php/javascript) and I'm lost on Objective-C. But I picked up the basics of Lua in about a day and the next day had built a simple game. It's wickedly fast to get to grips with and the documentation is detailed and easy to read. http://www.anscamobile.com/corona/
Re: Ask HN: Best way to write an app for both Android and iOS?
#28You can also go the jquery mobile/sencha touch/mobile rails route which is the direction i am going somewhat myself. These are actually pretty nice and fairly powerful for a basic application. Although jqeury mobile is newly developed as is mobile rails whereas sencha touch is pretty mature. Theres also jquery touch but i dont really know that much about it.
The question really comes down to what is the application doing. If you are doing a game you have to go native unless you can do something with html5 canvas. Also if you need to use something like gps or the camera or the accelarator you have to go either native or use phonegap, appcelarator or rhomobile as html5 through just a mobile browser cant give you access to the hardware.
What ive been ending up doing is just using straight jquery because im familiar with it and then seeing where my apps need to go.
Re: Ask HN: Best way to write an app for both Android and iOS?
#29Sencha touch: http://www.sencha.com/products/touch/
In my experience, I've found Sencha touch to be an incredible framework for developing native looking apps.
Re: Ask HN: Best way to write an app for both Android and iOS?
#30Ive been going through the same issue and unfortunately there isnt a clear cut answer. Initially i was looking at phonegap, titanium and rhomobile. The problem with them is each has pros and cons and its very confusing to really understand what they are. Theres also fanboys of each which makes it even more difficult to understand what separates each. You can also go the jquery mobile/sencha touch/mobile rails route w…
Another question is will you also have to make your app availalable to blackberry or other devices such as an ipad. If so then phonegap rhomobile appcelarator and sencha touch, jqeury mobile yada yada yada might work best because theyre focus really is one having one codebase be able to be used on multiple platforms.
If you only have to target the iphone and android and you have a mac and want to learn how to code each then just go native. Ive played around with android myself so i understand why that would be needed as opposed to using html5. But if you havent done that then it wont make sense.
Oh good luck to you in your endeavor. Building mobile apps are fun but a pain in the ass right now because of all the fragmentation.