Cross platform development has the illusion that you only have to write once and deliver to multiple areas with 100% of your code, but that’s not what it means. Its more like 80% of your code.
Instead of having to write in Java for Android and Objective C for iOS where 100% of your code is different, Corona lets you get 90+% of your code the same between the two.
Because devices have different hardware (screen sizes, shapes, cameras vs. no cameras, ability to make phone calls and not) you can never find a perfect formula to reach 100% compatibility.
Here are some examples… Want to use Inneractive Ads? You’re AppID is different depending on the device. The Kindle Fire has a status bar you can’t hide but counts against the content height.
Now you can for a lot of your graphical elements use your display.contentWidth and display.contentHeight to center and push design elements to relative positions on the screen. In other words you can anchor your menu button to the left side and your high scores to the right side without having to write device specific code and with the proper background sizes, and some cleaver setups in your config.lua file you can avoid huge amount of device tests.
Look through the blogs for Dynamic Resolution and there is a somewhat magical formula that helps with graphics. But the more precise location of where you have to place things, the harder it will be.
[import]uid: 19626 topic_id: 22964 reply_id: 91721[/import]