Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Rickyes
9
Years of Service
User Offline
Joined: 7th Sep 2015
Location:
Posted: 28th Dec 2018 18:12 Edited at: 29th Dec 2018 21:13
agk2 2018/12/12

this program on smartphone does not work.
why?



// Capture image from camera and show it
// Introduced in build 107

// display a background
backdrop = CreateSprite ( LoadImage ( "background5.jpg" ) )
SetSpriteSize ( backdrop, 100, 100 )

// get camera image
if GetCameraExists()=1
if ShowImageCaptureScreen()=1
while IsCapturingImage()=1
Sync()
endwhile
image=GetCapturedImage()
endif
endif

// main loop
do
// show image here
if GetSpriteExists(1)=0
CreateSprite(1,image)
SetSpritePosition(1,10,10)
SetSpriteSize(1,80,-1)
endif

// update the screen
Print("Result of capture..")
Sync ( )
loop
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 28th Dec 2018 18:37
no sure really what you are asking but if its just you can find the program
what I do on my Android phone I copy to my downloads directory on phone
then I search on the phone with the my files icon and then select device storage
otherwise I cant find it, unless ofcourse ive got it from google play
fubar
Rickyes
9
Years of Service
User Offline
Joined: 7th Sep 2015
Location:
Posted: 29th Dec 2018 08:21
quello che voglio dire รจ che con questa versione di agk il programma non funziona.lo smartphone rigetta il programma cosa che non accadeva con le versioni piu' vecchie.perche'?

what I mean is that with this version of agk the program does not work. The smartphone rejects the program, something that did not happen with the older versions.
why?
puzzler2018
User Banned
Posted: 29th Dec 2018 10:00
Whats not found, perhaps the image background5.jpg??

if so, then where is this image, is it inside media folder

then try

LoadImage("\media\background5.jpg")

and if the filename has any capitals like BackGround5.JPG, then you need to use case sensitisity on the folder and file names too.

Login to post a reply

Server time is: 2024-11-23 08:36:32
Your offset time is: 2024-11-23 08:36:32