Blank Screen on Android

I built an app and it’s on the AppStore and it works fine on iPad, iPhone 4 and so forth.

However Android is a different story.

I just get a blank black screen. I am using the debug key provided by the Corona SDK.

BTW I built JungleScene and it works fine on the Android phone. The same settings aren’t working on my app.

Is it because I have folders that have images and sounds in my app?
JungleScene has no folders at all - that’s the only difference I see.

BTW I am using wave files and I also commented them out but to no avail.

Has anyone run into an issue like this? [import]uid: 10652 topic_id: 6295 reply_id: 306295[/import]

Apparently images (and maybe sounds, I don’t know I haven’t tried sounds yet) are a problem in directories.

http://developer.anscamobile.com/forum/2011/02/09/cant-load-image-documents-directory

http://developer.anscamobile.com/forum/2011/02/09/images-directory-dont-work-android-using-windows-sdk#comment-21778 [import]uid: 23949 topic_id: 6295 reply_id: 21783[/import]

Thank you so much programmer, it works now. I had to remove ALL directories - Images and Sounds. Everything is under root now (ugly)!

But I found a new problem - my dialog boxes don’t fire the function. Ex. My back button gives a dialog box with two options - Ok and Cancel. With Ok it should go back to the main screen but it does not seem to fire the ‘OnBackComplete’ function. Cancel is ok (it just dismisses the dialog box). Note this code works fine on iOS just not on Android.

[code]
– Handler that gets notified when the alert closes
local function onBackComplete( event )
if “clicked” == event.action then
local i = event.index
if 1 == i then
disableGameView()
media.stopSound()
elseif 2 == i then
– do nothing
end
end
end

function backButton:tap( event )
media.playEventSound(“buttonclick.wav”)
local alert = native.showAlert( “Are you sure you want to leave the game?”, “”, { “OK”, “Cancel” }, onBackComplete )
end

backButton:addEventListener( “tap”, backButton)
[/code] [import]uid: 10652 topic_id: 6295 reply_id: 21860[/import]

Not sure, I haven’t used events much, just getting into Corona myself. I think there’s an issue with naming sound files though. You might need your wav file to be named “buttonclick_wav.wav”. Or does that part of it work? [import]uid: 23949 topic_id: 6295 reply_id: 21876[/import]