Android Question error when screen shut off

Discussion in 'Android Questions' started by eric Allen, Apr 4, 2015.

  1. eric Allen

    eric Allen Member Licensed User

    When I lock my screen then come back to my open game (game view) I get errors but if game is not up but is in pause or minimized mode I can lock and unlock screen all I want and have no errors

    Is there a way to use a resume and close when screen is locked
     
  2. Peter Simpson

    Peter Simpson Expert Licensed User

    Please post the error log
     
  3. eric Allen

    eric Allen Member Licensed User

    When I get home tonight I'll post it
     
  4. eric Allen

    eric Allen Member Licensed User

    [​IMG]
     
  5. Peter Simpson

    Peter Simpson Expert Licensed User

    It looks like your using a timer. Try setting the timer interval to 1000 or more.
     
    Last edited: Apr 4, 2015
  6. eric Allen

    eric Allen Member Licensed User

    The only timer I have is the game timer for running the game. The others get shut of on a close or pause . and the game timer pauses when game is in close or pause.

    Then I resume when game is back on. This all works fine unless I use lock screen or shut off the screen

    Can I use a do loop instead like me in DX to run my game or is timer only viable way because I tried do loop and that freezes and is sluggish
     
  7. eric Allen

    eric Allen Member Licensed User

    How can I work with screen lock and screen off and screen on just like activity pause and resume
     
  8. Peter Simpson

    Peter Simpson Expert Licensed User

    Maybe by using partial lock.
    Well your problem is definitely a time...
     
  9. eric Allen

    eric Allen Member Licensed User

    OK I'll look into my timers just weird how its lock doing it

    Ty for your replies
     
  10. RandomCoder

    RandomCoder Well-Known Member Licensed User

    So it sounds like your using more than one timer? Is it possible that you have reset the interval on one of these but forgot to disable it?
     
    Peter Simpson likes this.
  11. eric Allen

    eric Allen Member Licensed User

    That is what I think is happening I'll check it out tonight after work
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice