Sub Activity_Create(FirstTime As Boolean)
'correct initialization in order (opengl, canvas, orientation, gesture) -------------------------
Activity.Initialize("")
orientation.StartListening("Orientation")
canvasfresh.Initialize("canvasfresh",300) '<------- canvas redraw frame rate
glsv.Initialize(glsv.RENDERMODE_WHEN_DIRTY, "glsv")
Activity.AddView(glsv,0 ,0,100%x,100%y)
pnl.Initialize("pnl")
pnl.Tag = "pnl"
gest.SetOnTouchListener(pnl, "pnl_gesture")
Activity.AddView(pnl, 0, 0, 100%x, 100%y)
gamecanvas.Initialize(pnl)
'Turns on opengl and canvas -------------------------------------------
dosetup = True 'opengl on
canvasfresh.enabled = True 'draw to canvas on
'from here you can draw on the canvas ('gamecanvas'), and opengl will be visible below it, from example ------------------------
rect2.Initialize (0,0,Activity.width*.5,Activity.height*.5)
gamecanvas.DrawBitmap(intropic ,rect2)
gamecanvas.invalidate