Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

How to run a corona app on android device ?
Started by m.nabilmughal Jun 08 2013 10:10 PM

11 replies to this topic
android corona sdk hardware device testing
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

m.nabilmughal

[GLOBAL: userInfoPane.html]
m.nabilmughal
  • Observer

  • 2 posts
  • Corona SDK

I'm new and i don't knw how to run any simple app on my android phone ??

anyone help me ??



[TOPIC: post.html]
#2

reyanthonyrenacia

[GLOBAL: userInfoPane.html]
reyanthonyrenacia
  • Contributor

  • 121 posts
  • Corona SDK

very easy. First you need an "android phone" ,versions 2.2(minimum version) and above, to begin with okAY?

 

1.open your corona program in the Simulator. if ur ready proceed to  step 2

2.click "FILE" on your top,left window of the simulator and choose "Build for Android.."

3.a "Android Build Setup" wndow will appear. you dont have to make much changes except:
  -application name (fill that up with ur preffered "game title"

 -package   (anything unique will do.. example   helios.hangarro, com.mytextwist, corona.rocks..make it as close as possible to ur "game title")
 -save to FOlder   (where does corona place ur finished product, desktop? documents? u choose)

4. click "BUILD" below

 

if ur not a SUBSCRIBER it will take u at least 15 seconds before it starts building your android app..then just wait and tadaa, yOUr done! you now have an APK file (that's the file you run on ur phone)

 

5. connect ur android phone on your pc and copy your .APK finished product on your android phone's folder..

6. remove the device.. and look for that .APK .. install it on your phone

7. problem solved!



[TOPIC: post.html]
#3

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,125 posts
  • Corona Staff

Have you built your .apk file (build for android from the simulator)?

 

Are you asking how to get your app on your device?  Most Android devices have to be put into developer mode or at least set to allow installation of apps from 3rd party sources.  Then you can "side-load" (the term for copying an app not in a store to your device).

 

There are multiple strategies which includes emailing the .apk file to yourself and installing it from email.  Uploading it to a web service and then access it with the web browser to install it.  You can tether your device to your computer through the USB connector and with the right tools, (look up installing the  "adb" or android debug Bridge tools) issue a command line command to install it directly from  your computer.



[TOPIC: post.html]
#4

geir

[GLOBAL: userInfoPane.html]
geir
  • Observer

  • 10 posts
  • Enterprise

Is the process for building and running on device still that cumbersome with Corona? I hope this will be addressed. I haven't looked into how Gideros does this, but it at least allows for running directly on device, both iOS and Android.

I'd love to hear how other people test on their device as I prefer to test on device. What's the fastest way?



[TOPIC: post.html]
#5

bjsorrentino

[GLOBAL: userInfoPane.html]
bjsorrentino
  • Veteran

  • 8,506 posts
  • Corona SDK

Hi @geir,

There are basically 3 options to install/test on Android, described in the following guide under "Device Installation". I suppose the easiest way would be #3, using an app installer from the Google Play store.

 

http://docs.coronalabs.com/guide/distribution/androidBuild/index.html

 

Hope this helps somewhat,

Brent



[TOPIC: post.html]
#6

WideAwakeGames

[GLOBAL: userInfoPane.html]
WideAwakeGames
  • Contributor

  • 143 posts
  • Corona SDK

Hi @geir,

There are basically 3 options to install/test on Android, described in the following guide under "Device Installation". I suppose the easiest way would be #3, using an app installer from the Google Play store.

 

http://docs.coronalabs.com/guide/distribution/androidBuild/index.html

 

Hope this helps somewhat,

Brent

 

You could also use dropbox. Just drag the finished .apk into your dropbox folder on your mac/pc and make sure you have dropbox installed on the android device. Considering most games are small in size this works well for rapid iteration. At least for me.



[TOPIC: post.html]
#7

JonPM

[GLOBAL: userInfoPane.html]
JonPM
  • Corona Geek

  • 1,077 posts
  • Corona SDK

I'd have to say the easiest way is to email the apk to yourself.  



[TOPIC: post.html]
#8

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,125 posts
  • Corona Staff

Email isn't an option for everyone depending on the size of the APK file.  And honestly, given the number of people who post problems running their apps on device, at least for their development hardware, I would only recommend tethering and using adb install.  That way you can run adb logcat when you have problems and get the error messages.



[TOPIC: post.html]
#9

sangam687

[GLOBAL: userInfoPane.html]
sangam687
  • Observer

  • 17 posts
  • Corona SDK

Have you built your .apk file (build for android from the simulator)?

 

Are you asking how to get your app on your device?  Most Android devices have to be put into developer mode or at least set to allow installation of apps from 3rd party sources.  Then you can "side-load" (the term for copying an app not in a store to your device).

 

There are multiple strategies which includes emailing the .apk file to yourself and installing it from email.  Uploading it to a web service and then access it with the web browser to install it.  You can tether your device to your computer through the USB connector and with the right tools, (look up installing the  "adb" or android debug Bridge tools) issue a command line command to install it directly from  your computer.

hello sir, i want to run my corona app directly on android device as we run in eclipse IDE for android app.

i don't want to build .apk file then download/copy then install, its a log process.

so, would you tell me is there any way through which i can plug in my device in corona sdk, show pluged in device and give me permission to run game directly on device? 



[TOPIC: post.html]
#10

Sundraw

[GLOBAL: userInfoPane.html]
Sundraw
  • Enthusiast

  • 62 posts
  • Corona SDK

I will second the Dropbox option mentioned above. Nice and easy. 

 

As for viewing Logcat messages, I find it convenient, once the app was installed on the device, to start the ADT (or Eclipse), open the DDMS perspective and select the connected device in the list of devices. It is also useful to create a filter, with "Corona" tag. You will then see all the logging in the Logcat view.

 

So you can avoid using adb if you prefer. However, when you need to install a new build every few minutes, adb install -r is the most convenient way.



[TOPIC: post.html]
#11

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,125 posts
  • Corona Staff

Corona SDK does not support features of automatically running the app on your device.

 

Rob



[TOPIC: post.html]
#12

omyhaylovych

[GLOBAL: userInfoPane.html]
omyhaylovych
  • Observer

  • 1 posts
  • Corona SDK


[topic_controls]
[/topic_controls]