1. Check out our app, Forums for Android! Download and leave feedback here!

prevent going into standby mode (sleep)

Discussion in 'App Inventor' started by ypc, May 17, 2012.

  1. ypc

    ypc New Member
    Thread Starter
    25

    May 15, 2012
    2
    0
    25
    Is there a way using App Inventors blocks to prevent the phone to go into sleep mode?
    The maximum I can configure using parameters option of the phone is 30mm.

    regards:thinking:
     

    Advertisement

  2. Jurrie

    Jurrie New Member
    5

    Jan 7, 2013
    1
    0
    5
    Hello,

    I ran into the same problem and I added a notifier: Notifier1.
    once in the 30 secs I

    call Notifier1.ShowAlert="text" .

    This prevents the phone going into standby mode
     
  3. PavementPilot

    PavementPilot Well-Known Member
    36

    Aug 1, 2011
    48
    3
    36
    Male
    Professional Driver
    Vernon, BC
    So for that to work you will need a clock element and have it fire every 25 seconds, calling the notifier.showalert='blank text'

    blank text means a text block with all words erased.
     
  4. royalecraig

    royalecraig Member
    25

    Feb 22, 2017
    10
    0
    25
    I think there is an add on tool for this now.
    It might be a Taifun tools addon.
    Search for that.
     

Share This Page

Loading...