Andorid native is blank screen

I am using android native to build the app. But I suffered a white screen from time to time when I reopen the app from the home page of the phone . My test process is as follow:

  1. Install the app

  2. Open the app

  3. Jump to the home page of smart phone

  4. Wait for 1-5 mins

  5. Open the app again

  6. A white screen shows up ( this seems like the app is not responding any more)

The corona code (main.lua) is very simple which includes just a rectange:
local bg=display.newRect(100,0,300,300)
bg:setFillColor( 1,0,1 )
Could anybody help me for this issue?

I changed different version of solar2d SDK but got the same result. My building environment is android studio.


bg.fill={1,0,1} will work