Thanks for this thread, very helpful since i was similarly looking to set this up but i couldn’t find anything on the testflightapp site.
Probably give this a try shortly!
Thanks for this thread, very helpful since i was similarly looking to set this up but i couldn’t find anything on the testflightapp site.
Probably give this a try shortly!
Do we have to create Payload folder for android as well?
When I download through testflight on my galaxy tab ( without the payload folder) it just shows my background image and nothing happens after that.
So what should I do?
No you don’t need a payload folder for android, you can just load the apk directly. I find that Testflight sometimes has trouble installing an app immediately after uploading it, I usually leave it for 15 mins or so.
If the app is installing and then you see a black screen, it could be due to a problem in the app itself (missing files, upper/lowercase discrepancies etc).
same problem is happening when I am installing the apk directly, maybe it is not the testflight problem but build problem,
I am just seeing my main menu bg, after that title animation should happen but that is not happening.
I have posted a thread here for this
http://forums.coronalabs.com/topic/40631-problem-testing-app-on-android/
Hope someone can help me out, very new to corona
In that case it definitely sounds like you have a mistake in your code somewhere. You should use “adb logcat” to output the app’s log, and see if you can see any errors there (you should see similar errors as you would in the simulator).
I am getting these notes when running in simulator
Illegal Audio-Mpeg-header 0 x 41504554 at offset 33774
trying to resync
Hit end of available data during resync
Illegal Audio-Mpeg-header 0 x 41504554 at offset 33774
trying to resync
Hit end of available data during resync
Connected it with Samsung Kies
got this message in adb
K:\ANDROID SDK TOOLS\platform-tools>adb logcat Corona:I *:S
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
I/Corona (23347): Runtime error
I/Corona (23347): …-UFO Defend\main.lua:46: a
ttempt to index local ‘playBtn’ (a nil value)
I/Corona (23347): stack traceback:
I/Corona (23347): [C]: ?
I/Corona (23347): …-\UFO Defend\main.lua:
46: in main chunk
I/Corona (23347): Runtime error
I/Corona (23347):
I/Corona (23347): stack traceback:
I/Corona (23347): [C]: ?
I/Corona (23347): …-\UFO Defend\main.lua:
46: in main chunk
I made a forward variable, called local playBtn
I removed it and testing now
It’s telling you that the playBtn variable doesn’t exist, most likely you’ve used an image which is not valid for some reason on Android (maybe it’s called “myButton.png” but you’ve typed “mybutton.png” in your code). Or it could be that you’re using dynamic content scaling and haven’t added an @2x image or something.
Names seem to be ok, but I have @2 in image suffix in config but have not added the 2x size, how to disable the suffix for now? By replacing it with something or I just make it a comment?
You could just comment out the @2x stuff in the config.lua file, but to be honest it should fall back onto the regular png anyway, so this shouldn’t be the problem.
You say the name “seems to be ok” - is it EXACTLY the same in your code as in the filename? And is it definitely a valid file format (e.g. jpg, png)?
Did you want to post your playBtn code so we can see if there is an obvious mistake?
Ok it worked, the problem was name was fine, but .png was .PNG and I had written .png, now it is working from test flight as well as by USB connection.
Thanks for all the help.
The debugger really helped, I was stuck at this from yesterday and couldn’t move on. Setting the adb was troublesome but now I can pinpoint any future problems.
Do we have to create Payload folder for android as well?
When I download through testflight on my galaxy tab ( without the payload folder) it just shows my background image and nothing happens after that.
So what should I do?
No you don’t need a payload folder for android, you can just load the apk directly. I find that Testflight sometimes has trouble installing an app immediately after uploading it, I usually leave it for 15 mins or so.
If the app is installing and then you see a black screen, it could be due to a problem in the app itself (missing files, upper/lowercase discrepancies etc).
same problem is happening when I am installing the apk directly, maybe it is not the testflight problem but build problem,
I am just seeing my main menu bg, after that title animation should happen but that is not happening.
I have posted a thread here for this
http://forums.coronalabs.com/topic/40631-problem-testing-app-on-android/
Hope someone can help me out, very new to corona
In that case it definitely sounds like you have a mistake in your code somewhere. You should use “adb logcat” to output the app’s log, and see if you can see any errors there (you should see similar errors as you would in the simulator).
I am getting these notes when running in simulator
Illegal Audio-Mpeg-header 0 x 41504554 at offset 33774
trying to resync
Hit end of available data during resync
Illegal Audio-Mpeg-header 0 x 41504554 at offset 33774
trying to resync
Hit end of available data during resync
Connected it with Samsung Kies
got this message in adb
K:\ANDROID SDK TOOLS\platform-tools>adb logcat Corona:I *:S
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
I/Corona (23347): Runtime error
I/Corona (23347): …-UFO Defend\main.lua:46: a
ttempt to index local ‘playBtn’ (a nil value)
I/Corona (23347): stack traceback:
I/Corona (23347): [C]: ?
I/Corona (23347): …-\UFO Defend\main.lua:
46: in main chunk
I/Corona (23347): Runtime error
I/Corona (23347):
I/Corona (23347): stack traceback:
I/Corona (23347): [C]: ?
I/Corona (23347): …-\UFO Defend\main.lua:
46: in main chunk
I made a forward variable, called local playBtn
I removed it and testing now
It’s telling you that the playBtn variable doesn’t exist, most likely you’ve used an image which is not valid for some reason on Android (maybe it’s called “myButton.png” but you’ve typed “mybutton.png” in your code). Or it could be that you’re using dynamic content scaling and haven’t added an @2x image or something.
Names seem to be ok, but I have @2 in image suffix in config but have not added the 2x size, how to disable the suffix for now? By replacing it with something or I just make it a comment?
You could just comment out the @2x stuff in the config.lua file, but to be honest it should fall back onto the regular png anyway, so this shouldn’t be the problem.
You say the name “seems to be ok” - is it EXACTLY the same in your code as in the filename? And is it definitely a valid file format (e.g. jpg, png)?
Did you want to post your playBtn code so we can see if there is an obvious mistake?