Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Problem with application:setKeepAwake(keepAwake) — Gideros Forum

Problem with application:setKeepAwake(keepAwake)

betegbeteg Member
edited January 2013 in Bugs and issues
Hi.
I have problem with application:setKeepAwake... i'm trying to put argument (true) or (keepAwake) but
when I'm trying to run the app (on player) it gives mi an error:

main.lua:10: attempt to call method 'setKeepAwake' (a nil value)
stack traceback:
main.lua:10: in main chunk

so... anyone can help me?

Comments

  • maybe you misstyped something it should be like this:
    application:setKeepAwake(true)
  • betegbeteg Member
    edited January 2013
    Copy/Paste - same result (error) :(

    I'm using Gideros v2012.09.6
  • atilimatilim Maintainer
    Accepted Answer
    Or you may have an another global "application" variable.

    Likes: beteg

    +1 -1 (+1 / -0 )Share on Facebook
  • ar2rsawseenar2rsawseen Maintainer
    edited January 2013 Accepted Answer
    how about any other application method as
    print(application:getDeviceInfo())
    @atilim yes thats exactly what I was thinking about

    Likes: beteg

    +1 -1 (+1 / -0 )Share on Facebook
  • THANKS!
    I was rebuilding Corona project for Gideros... application (as variable) was in config.lua from Corona. After removing config.lua it works. \
    Thanks again!
Sign In or Register to comment.