Its been four months using corona now i was ready to ship my app off to google play and ios.Stupidly without testing on an android device, i dont have one and neither do close friends:(, i published to google play. I told all my friends to download the app and was about to tell the corona forums when i realised my app only shows a blank screen. As i said before i have no android devices and the app works fine in the simulator. i beleive the problem is in my main.lua
----------------------------------------------------------------------------------------- -- -- main.lua -- ----------------------------------------------------------------------------------------- display.setStatusBar( display.HiddenStatusBar ) local composer = require "composer" local json = require("json") local data = require "data" display.setDefault( "background", 0.94,0.82, 0.6); -- it shows this on screen composer.recycleOnSceneChange = true timeLeft = 900000 -- yes,this is meant to be a global, its the only one in my app local function onComplete() if data.isShowingInfo == false then composer.showOverlay("timeup",{isModal = true}) end end -- this timer designed to run in the background of the app local datao = timer.performWithDelay( 20, function () if timeLeft ~= 0 then timeLeft = timeLeft - 20 else onComplete() timer.pause( datao ) end end,-1) -- a global function used to cancel the timer function stoptimer() timer.cancel( datao ) end -- could thhis be the problem local function readData() local path = system.pathForFile("data.json",system.DocumentsDirectory ) local file = io.open( path,"r") local contents = "" if file then local contents = file:read("\*a") data = json.decode( contents ) io.close(file) file = nil else io.close(file) end end local function saveData() local path = system.pathForFile("data.json",system.DocumentsDirectory ) local file = io.open( path,"w") if file then --print( json.encode( data ) ) local content = json.encode( data ) file:write( content ) io.close(file) file = nil else io.close( file ) end end readData() data.logs = data.logs + 1 saveData() composer.gotoScene "scenetemplate"