Is Corona Suitable For Business Applications?

Before coming to Corona, I used Eclipse with Android’s SDK to create a test application. The design part was easy because there was drag and drop functionality. Coding was nasty though.

My test application is simple and just converts a number to either Celsius or Fahrenheit. I need a text box, a label, 2 option buttons and a button.

When I enter a number in the text box, I select one of the option buttons, click the button and the result appears in the label.

Coding for Corona is simple but how do I get the objects to appear in the simulator without drag and drop? Are there native APIs for placing objects in the simulator? Are there examples available?

I am using Corona SDK in Windows.

– Frederick [import]uid: 139742 topic_id: 24445 reply_id: 324445[/import]

Absolutely Corona can meet the needs you describe. In regards to the Simulator, it’s basically a visual representation of your code, not vice-versa. You can’t drag and drop to get code. However, there are some third-party tools which can help you with that, plus an official Corona “level editor” is currently in development. If you’re accustomed to visual-based design systems, Corona might seem awkward without drag and drop, but actually the transition is easy. :slight_smile:

Brent [import]uid: 9747 topic_id: 24445 reply_id: 98881[/import]

Hi Brent,

Thanks for your reply.

Do you know of any samples I can refer to for the test application I am trying to do in Corona? I have checked around for the past two days and I only see samples for games and such and “Hello world!”.

Here is the link to the android app I want to do in Corona:-

https://play.google.com/store/apps/details?id=de.vogella.android.temperature&feature=search_result#?t=W251bGwsMSwxLDEsImRlLnZvZ2VsbGEuYW5kcm9pZC50ZW1wZXJhdHVyZSJd

– Frederick [import]uid: 139742 topic_id: 24445 reply_id: 98889[/import]

Hi Frederick,
Did you browse the samples that are contained in your Corona install directory? There are dozens of working examples in there, some of which should get you started. In OSX, this folder is named “SampleCode” and it’s in the root Corona directory; it should be similar in Windows.

Otherwise, I suggest you browse the API documentation for the elements you need (for example, input text fields). Typically there are code snippets in there which can show you how to use them.

http://developer.anscamobile.com/reference/

The “Code Share” is also vastly helpful, and sometimes you’ll find full working examples which you can follow.
http://developer.anscamobile.com/code/

Beyond that, it’s just trial and error, and posting your questions to the forums. Most people here will be happy to help you out with a particular problem if you describe it and provide some of your sample code. We in the forum are VERY helpful in general. :slight_smile:

Brent
[import]uid: 9747 topic_id: 24445 reply_id: 98891[/import]

Hi Brent,

Thanks for the links. I’ll explore them all and see if I can get the test application working.

I like what I see in Corona so far and I hope that it will be the platform I will be using for mobile applications.

– Frederick [import]uid: 139742 topic_id: 24445 reply_id: 98893[/import]