How to pass variables from native android and iOS to corona?

I have setup the native android and ios apps via corona enterprise, both are calling corona’s main.lua finely. What my problem is that I looked around much but can’t find any tutorial on how to pass variables from native android and iOS to corona’s main.lua.

Unfortunately, there’s no simple answer. You’ll need to understand the Lua stack and how it works.
 
Rob’s tutorials go through some very basic examples. In these examples you can see how this communication is done.
Look for “push”, “pop” and “set” statements in both tutorials.
Android: http://coronalabs.com/blog/2014/04/01/tutorial-corona-enterprise-quickstart-android/
iOS: http://coronalabs.com/blog/2014/03/18/tutorial-corona-enterprise-quickstart-ios/
 
This is the time to get the book I mentioned in the other post where we had a discussion. If you’re going to be developing with Corona Enterprise this book is a must-have item. Especially Section IV (The C API) where it explains the Lua Stack and the intricacies of C<->Lua.
http://www.lua.org/pil
 
For Android you should additionally have a look at the LuaJava reference.
http://www.keplerproject.org/luajava/API/index.html
 
Programming in Enterprise is not easy.  You need to understand native development for both iOS and Android + the additional layer of communication between C and Java with Lua.

I know I need to learn it and I will but this is urgent. Can you please tell me how to send variables from android sdk to corona?

Those tutorials should show you how to do it.  You can also look at the SimpleLuaExtension sample app in:  /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/

All the links Ingemar posted will give you all the information you need. If it’s urgent then perhaps you will need to pay someone to do the work for you.

Unfortunately, there’s no simple answer. You’ll need to understand the Lua stack and how it works.
 
Rob’s tutorials go through some very basic examples. In these examples you can see how this communication is done.
Look for “push”, “pop” and “set” statements in both tutorials.
Android: http://coronalabs.com/blog/2014/04/01/tutorial-corona-enterprise-quickstart-android/
iOS: http://coronalabs.com/blog/2014/03/18/tutorial-corona-enterprise-quickstart-ios/
 
This is the time to get the book I mentioned in the other post where we had a discussion. If you’re going to be developing with Corona Enterprise this book is a must-have item. Especially Section IV (The C API) where it explains the Lua Stack and the intricacies of C<->Lua.
http://www.lua.org/pil
 
For Android you should additionally have a look at the LuaJava reference.
http://www.keplerproject.org/luajava/API/index.html
 
Programming in Enterprise is not easy.  You need to understand native development for both iOS and Android + the additional layer of communication between C and Java with Lua.

I know I need to learn it and I will but this is urgent. Can you please tell me how to send variables from android sdk to corona?

Those tutorials should show you how to do it.  You can also look at the SimpleLuaExtension sample app in:  /Applications/CoronaEnterprise/Samples/SimpleLuaExtension/

All the links Ingemar posted will give you all the information you need. If it’s urgent then perhaps you will need to pay someone to do the work for you.