Android Build Settings

I am ready to build the first release of my game for Android, and I just want to be sure I am doing this right. Here is my build.settings:

-- Supported values for orientation:  
-- portrait, portraitUpsideDown, landscapeLeft, landscapeRight  
  
settings = {  
  
 orientation = {  
 default = "portrait",  
 supported = { "portrait", }  
 },  
  
 iphone = {  
 plist = {  
 UIStatusBarHidden = false,  
 UIPrerenderedIcon = true, -- set to false for "shine" overlay  
 UIApplicationExitsOnSuspend = true,  
 }  
 },  
  
 -- For Android:  
  
 android =  
 {  
 versionCode="10",  
 versionName="1.0",  
 },  
  
 androidPermissions = {  
 "android.permission.INTERNET",  
 },  
}  

When I go to build for Android, the dialog box pops up, but the Version Code is 1 (not 10). It seems like versionCode and versionName are not being populated from teh build.settings file.

Do still need to enter the correct values on the Build screen? Aren’t they supposed to be populated automatically?

thanks! [import]uid: 114363 topic_id: 22355 reply_id: 322355[/import]

Hey there, I believe this thread might help; http://developer.anscamobile.com/forum/2011/07/15/versioncode-error :slight_smile: [import]uid: 52491 topic_id: 22355 reply_id: 89238[/import]

Thanks Peach…

I read that and downloaded apktool.

When I did the build I entered the correct info in the build popup and it looks like the apk is correct. I was just curious that the build popup did not automatically take what was entered in the build.settings file, but that’s ok… as long as the end result is that the file is correct! [import]uid: 114363 topic_id: 22355 reply_id: 89279[/import]

I’m the first to admit I am not an expert when it comes to Android - I focus on iOS for the most part.

I’ll see if I can find more info on this from someone who does know; in the meantime I’m glad the end result is correct :slight_smile: [import]uid: 52491 topic_id: 22355 reply_id: 89382[/import]