(AGK version: 2.0.21)
Submitted: 2016-09-08 08:14:17
rem AGK 2.0.21
rem MR 08.09.2016
rem Test for Android Device

SetImmersiveMode(1) //docu said from 4.4 up

img=1

cam=0

SetDeviceCameraToImage(cam,img) //cam input goto image, image for id will created

spr=CreateSprite(img)			//image output into a sprite
setspritesize(spr,GetVirtualWidth(),GetVirtualHeight())	//full size

do
	print("click to exit")
	if GetPointerPressed() then exit
	sync()
	
loop
end
(AGK version: 20017.9.25)
Submitted: 2017-11-14 16:59:20
#option_explicit

rem AGK 2017.9.25
rem MR 14.11.2017
rem Test for Windows PC

local img as Integer
local cam as integer
local spr as integer

img=1

cam=0

SetDeviceCameraToImage(cam,img) //cam input goto image, image for id will created

spr=CreateSprite(img)                   //image output into a sprite
setspritesize(spr,GetVirtualWidth(),GetVirtualHeight()) //full size

do
        print("click to exit")
        if GetPointerPressed() then exit
        sync()
        
loop
end
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.