Hi all,
I am trying to build my first app for android phone. Everything works fine for the build, however, when I try to install it it gives me this error “Application not installed”. Not sure why I am getting the error because “Unknown sources” is check in my phone. I did some search in the web and found out that depending on phone architecture (armV6, armV7) corona app might not install in some phone. Can anyone help me figure out what I am doing wrong here? If the architecture is the issue, how do I find out if my phone has has armV6, armV7 etc.? and can anything be done about it? Thank you for the help. [import]uid: 104131 topic_id: 20708 reply_id: 320708[/import]
I think your device is ARMv7 and has Android version 2.3.3 (or so) and then it does run Corona (reagarding the processor & OS version).
The Snapdragon application processor core, dubbed Scorpion, is Qualcomm’s own design. It has many features similar to those of the ARM Cortex-A8 core and it is based on the ARM v7 instruction set, but theoretically has much higher performance for multimedia-related SIMD operations.[1]
Source: Wikipedia. -> http://en.wikipedia.org/wiki/HTC_Evo_4G
PS: About test the debug build built in Corona Simulator on your device, the easiest way I got it is putting my .apk built into my Dropbox folder and get it there from the Android device, and so it just ask you if want to install, you say yes, and VOILÁ! (Attention: You have to go to the phone setting and turn-on the ability to install “3rd”-part applications as well, if not, it cannot work).
Btw I am very new to Android too. Sorry.
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 20708 reply_id: 81365[/import]
Thanks Rodrigo for the quick response. I did turn on the ability to run 3rd party application. In the HTC EVO I went to 1) Settings 2) Applications 3) Make sure Unknown Sources. I think that’s the correct way to turn on 3rd party application.
I don’t have a Dropbox folder in my phone. The way I loaded the .apk file to the phone is 1) I just copy it to my phone download folder 2) Go to the download folder and Click on the .apk file and when it ask me if want to install I say yes. After trying to install it for a few seconds I get this error message “Application not installed”.
Do you know of any other thing that I could try? Thank you so much for the help.
[import]uid: 104131 topic_id: 20708 reply_id: 81375[/import]
no worry @fabre, I am glad to help.
But honestly I do not know what I could sugest you to do. BTW wait a little bit more. Sure someone experienced here in the community will get a better help for you.
PS: Are you sure about your build.settings file also?
Are you using the debugkey that Corona Simulator offer us already?
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 20708 reply_id: 81377[/import]
Thanks Rodrigo. Below is my build.settings and config.lua file
Do you know if there is something specific that I need to add to these files for android phone? Can you please share the config.lua and build.setting files that works for you in the past? Thanks again for the help.
settings =
{
iphone =
{
plist =
{
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-72.png”,
},
},
}
}
Config.lua
application =
{
content =
{
width = 320,
height = 480,
scale = “zoomStretch”,
fps = 60
},
}
[import]uid: 104131 topic_id: 20708 reply_id: 81388[/import]
@e1fabre Sure I can share my files for Android. BTW I`ve got it working yesteday, so am sure these files below work nice (on Android OS). Give a try and report.
•My config.lua
[lua]application =
{
content =
{
width = 320,
height = 480,
–scale = “letterbox”,
scale = “zoomStretch”,
–scale = “zoomEven”,
fps = 60,
antialias = true,
xalign = “center”,
yalign = “center”,
imageSuffix =
{
["@2"] = 2
}
}
}[/lua]
•My build.settings fie:
[lua]settings = {
orientation =
{
default = “portrait”,
supported =
{
“portrait”,
},
},
android =
{
versionCode = “1”,
versionName = “1.0”
},
androidPermissions =
{
“android.permission.INTERNET”,
“android.permission.ACCESS_NETWORK_STATE”,
“android.permission.CALL_PHONE”,
“android.permission.ACCESS_COARSE_LOCATION”,
“android.permission.ACCESS_FINE_LOCATION”
},
}[/lua]
PS:If some community member PRO on Android would have a look also at these files and sugest me any better changing, I also would be glad! Thanks!
Hope that help!
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 20708 reply_id: 81397[/import]
Rodrigo thanks. I tried your build and config. It gives me the same error. Maybe its something with my phone. I just don’t know what to try any more. Hopefully someone else might chime in. Thanks for the help. [import]uid: 104131 topic_id: 20708 reply_id: 81404[/import]
@fabre…sorry to hear this.
BTW, you have to take much care because it is all case-sensitive. Be careful with caps letters, commas, etc.
Let`s wait some expert.
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 20708 reply_id: 81406[/import]
Hey fabre,
Can you make a post about this in Android, please? I’m not an expert with Android so I can’t properly advise you with certainty on this matter.
My one suggestion would be to try building and installing one of Corona’s apps from CoronaSDK > SampleCode to see if that works, it may give more info.
Your device is an HTC Evo 4G, or is there more than one Evo? (Sorry, I’m not up to date on this either - Australia, where I’m from, has very few of the newer mobile devices.)
Peach [import]uid: 52491 topic_id: 20708 reply_id: 81458[/import]
Hi Peach,
Thanks for the help. My device is a HTC evo 4G. I would be glad to post about this. Do you have a link to where to post this issue?
I tried building one of the sample codes. It gives me the same error. I tried the build in two of my friends HTC Evo also I get the same error. So I know it’s not just my phone. Do you know if there’s an issue with Corona on HTC phones?
Anyone out there who might have a solution for this your help is appreciated. [import]uid: 104131 topic_id: 20708 reply_id: 81619[/import]
Hey there,
Corona runs on HTC fine, so this issue is somewhat confusing to me. (Mostly due to my lack of work with Android.)
The place to post would be here; http://developer.anscamobile.com/forums/android
You may find a solution from another user or else Josh, our local Android expert, may have some advice for you.
If you don’t receive a reply in a reasonable amount of time (wait until Monday, it is the weekend ;)) then can you please bump this thread and I’ll try to make sure it gets addressed for you?
Peach
[import]uid: 52491 topic_id: 20708 reply_id: 81638[/import]
Thanks Peach. I will post it in the android forum and let you know if I have any success. Thanks again. [import]uid: 104131 topic_id: 20708 reply_id: 81949[/import]
Thank you all. PROBLEM SOLVED. The problem was that I was using Java 7 instead of Java SDK v6 x86 (32bit). If you have Java 7 you need to remove it and install Java SDK v6 x86 (32bit). After I install Java v6 and rebuild the app, the application was able to install in my HTC evo. Here’s a great article by Thomas Gorence that explain all the requirements needed for Android http://producerism.com/blog/how-to-develop-in-corona-sdk-on-windows/
Here’s a direct link to the Java SDK v6 x86 (32bit) download http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u27-download-440405.html
Hope this help someone.
Someone from Corona staff please let the users know this fact. Thanks again for the help. [import]uid: 104131 topic_id: 20708 reply_id: 82262[/import]
Hey again,
Fantastic news! Thanks for updating 
Very useful info, including for me with my limited Android experience.
Peach
[import]uid: 52491 topic_id: 20708 reply_id: 82416[/import]