It would help if the code posted didn't have syntax issues.
This code works (and gives you a way to exit the app):
createSprite(1,0)
enableClearColor(0)
do
if GetRawKeyPressed(27) then exit
if GetPointerPressed() then exit
SetSpritePosition(1,random(1,100),random(1,100))
SetSpriteColor(1,random(1,255),random(1,255),random(1,255),random(1,255))
sync()
loop
I tested it on my iOS 6.0 devices and it worked fine.
When tested on my Nexus 7, Android 4.2.2 and OpenGL es 2.0, it flickered but the boxes appeared correctly.
When tested on my Kindle Fire HD 7", Android 4.0.3 based and unknown OpenGL version it worked flawlessly.
When tested on my Samsung Galaxy S III, Android 4.1.2 and OpenGL es 2.0, it was totally barfed up, like the other test.
Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master