Building an App - Black Screen... App Download Included.

I’ve been stalled out for over a month… my attempt at a proof-of-concept app for a client is going nowhere.

I’m compiling for Android 2.2. Black Screen… looks beautiful in the simulator.

I also have Corona installed on my Mac - but don’t have any iOS devices – have compiled on both. Black Screen.

http://www.antiochwebhost.com/VoXe-20110325.zip

If anyone would be gracious enough to download, try in the simulator then compile / try to install on their devices, I’d be thrilled.

I’m so absolutely frustrated… [import]uid: 19875 topic_id: 8251 reply_id: 308251[/import]

Works fine on iOS 4+ :slight_smile:
[import]uid: 33866 topic_id: 8251 reply_id: 29444[/import]

cl-apps: You just made my morning. :slight_smile: You can probably tell that it’s very much a work in progress. I’ve spent just as much time on the app as I have trying to get the thing to work on my Android 2.2 T-Mobile G2! When I posted this, I’d finally given up.

I’m wondering if I need to go out and get myself an iPod Touch :)… I really don’t have it in my budget until the project is further along - but this is REALLY encouraging!

If anyone wants to test it on Android and join me in expressing confusion as to why it is just a black screen, that would be awesome :slight_smile: [import]uid: 19875 topic_id: 8251 reply_id: 29467[/import]

Yeah your project worked fine on iOS, just tried it on a Samsung GT-I5500 (Android 2.1) so could only compile 2.0.1 and that sat on the black screen… might have something to do with build settings? Haven’t had a chance to go through your code.

If I was you i’d treat myself to an iPod touch because without it development is a nightmare trying to guess all the time and once you release something it’s nice to know it works!

Android development for me has been pretty hit or miss so far, some things work and some things don’t so I’m not surprised to see your project getting stuck on the black screen. You can sort it out and fix it but in comparison iOS development is a lot less painful and generally what you see in the simulator works on the iOS device.

[import]uid: 33866 topic_id: 8251 reply_id: 29471[/import]

I think Android has different restrictions than iOS as far as filenames and putting files into directories. Sorry I can’t be more specific, I haven’t built anything for Android. [import]uid: 12108 topic_id: 8251 reply_id: 29500[/import]

This is an interesting notion … I would truly appreciate if Ansca would publish something on this, or be able to detect these problems during compiling…

As it is, I’m just elated that my App is running on iPhones :slight_smile: [import]uid: 19875 topic_id: 8251 reply_id: 29506[/import]

Try searching the forum for “android directories.” I’ve definitely seen that mentioned before. [import]uid: 12108 topic_id: 8251 reply_id: 29507[/import]

THANK YOU SO MUCH.

I’ve read this before, but didn’t understand that it applied to me… and even did some tests at one point without FULLY committing to this.

My app is now running almost perfectly under Android 2.2 and it -is- fast. [import]uid: 19875 topic_id: 8251 reply_id: 29523[/import]

so - was the solution just to move all the files into one folder? I have the same issue, but all of the files are in one folder. :frowning: [import]uid: 50410 topic_id: 8251 reply_id: 31764[/import]

frnapps,

Yes, the solution usually is to move all the files to one folder.

Also…make sure you have the right android permissions :slight_smile: If you’re writing to a file, getting a device id, or sql database…make sure you at least have READ_PHONE_STATE in your build.settings option.

Note: I’m not sure if you need READ_PHONE_STATE for writing files, but you definitely need it if you’re going to grab the phone’s device id :slight_smile:

Here’s an example of one of my build.settings files…
****

settings =
{
android =
{
versionCode = “32”
},

androidPermissions =
{
“android.permission.READ_PHONE_STATE”,
“android.permission.INTERNET”
},

orientation =
{
default = “landscape”,
supported =
{
“landscape”,
},

}
}
[import]uid: 12700 topic_id: 8251 reply_id: 31839[/import]

frnapps: Yes, for me the solution was all files in the same folder. Another thing you might check – are there any files in your folder that DO NOT need to be there? If I’m not mistaken, Corona SDK clumsily packages up the content of the folder as the APK – it doesn’t intelligently build the APK based on the code.

Corona Team - forgive me if I’m spreading vicious rumors – but when I remove extraneous JPG files and other things that I was testing but not using, my APK changes size!

I’m not sure if the same is true for the iPhone/iPad app.

I wish that Corona’s compiler was more verbose and spat out a debug log so that we, as developers could have more insight to how our app is compiling – including a rundown on file sizes etc.

If Corona truly is fully compiling online, then I also think that it would make sense to be able to access compilation data from one’s AnscaMobile.com account… would be a neat feature…

[import]uid: 19875 topic_id: 8251 reply_id: 31860[/import]