1. Download our Official Android App: Forums for Android!

Apps app to make a sound if screen is off

Discussion in 'Android Development' started by InGearX, Jul 7, 2016.

  1. InGearX

    InGearX Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    38
    Posts:
    378
    Joined:
    Aug 1, 2011

    Aug 1, 2011
    378
    15
    38
    any online tools for me to make this simple app

    or can someone make a simple app

    that will sound an alarm if the screen goes off

    if (screen == off) make sound & flash camera flash

    why - I want to use my phone to record my self onto video .. 30+ minute talks .. but I want to be sure it is still filming .. sometimes exceptions happen .. out of space .. out of battery .. camera app rash .. etc ..

    one way is to have a mirror behind the phone to reflect the screen .. but that is low tech way .. and would make me focus to check often ..

    i have non rooted Note 3 and LG G2

    thank you ..
     

    Advertisement

  2. Thom

    Thom  
    VIP Member
    Rank:
     #21
    Points:
    1,318
    Posts:
    12,016
    Joined:
    Feb 16, 2011

    Feb 16, 2011
    12,016
    4,978
    1,318
    Male
    Software Developer
    Keene, NH USA
    This Tasker profile will beep if screen goes off. I can find no way to invoke the flash.

    Profile: Demo
    Event: Display Off
    Enter: Anon
    A1: Beep [ Frequency:8000 Duration:1000 Amplitude:50 Stream:3 ]

    ... Thom
     
    El Presidente and scary alien like this.
  3. Dannydet

    Dannydet Android Expert
    Rank:
     #31
    Points:
    818
    Posts:
    3,794
    Joined:
    Jan 16, 2016

    Jan 16, 2016
    3,794
    1,939
    818
    Male
    Graphics Manager / Sales
    USA
    Just find a camera app off the play store that has the option to keep the screen on while recording. I use "a better camera" app. Works like a charm...Thus not needing to notify?
     
  4. InGearX

    InGearX Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    38
    Posts:
    378
    Joined:
    Aug 1, 2011

    Aug 1, 2011
    378
    15
    38
    thanks i made it

    <TaskerData sr="" dvi="1" tv="4.8u5m">
    <Profile sr="prof4" ve="2">
    <cdate>1468051478134</cdate>
    <edate>1468051595528</edate>
    <id>4</id>
    <mid0>3</mid0>
    <nme>app1</nme>
    <Event sr="con0" ve="2">
    <code>210</code>
    <pri>0</pri>
    </Event>
    </Profile>
    <Task sr="task3">
    <cdate>1468051093467</cdate>
    <edate>1468051431768</edate>
    <id>3</id>
    <nme>s2</nme>
    <Action sr="act0" ve="7">
    <code>171</code>
    <Int sr="arg0" val="8000"/>
    <Int sr="arg1" val="1000"/>
    <Int sr="arg2" val="50"/>
    <Int sr="arg3" val="3"/>
    </Action>
    </Task>
    </TaskerData>


    ==================
    ===[ ]=====

    Profile: app1 (4)
    Event: Display Off
    Enter: s2 (3)
    A1: Beep [ Frequency:8000 Duration:1000 Amplitude:50 Stream:3 ]
     
  5. InGearX

    InGearX Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    38
    Posts:
    378
    Joined:
    Aug 1, 2011

    Aug 1, 2011
    378
    15
    38
    hmmm but how can i made it into a stand alone app?

    like .apk to send it to my other devices?

    i got Tasker App factory ..

    hmmm but can't seem to make it into .apk
     
  6. Thom

    Thom  
    VIP Member
    Rank:
     #21
    Points:
    1,318
    Posts:
    12,016
    Joined:
    Feb 16, 2011

    Feb 16, 2011
    12,016
    4,978
    1,318
    Male
    Software Developer
    Keene, NH USA
    With Tasker and Tasker App Factory installed do the following in Tasker ...

    Create project ...
    Long tap on Home at bottom of screen
    Select Add
    Type the name First
    Have profile app1 and task s2 in project First
    Long tap on project First
    Select set icon and choose something

    Build apk ...
    Long Tap on First
    Select Export
    Select As App
    Enter Package ... I would use net.tlanet.first
    If blank enter Launch Task ... I would use s2
    Tap Tasker icon at top of screen

    The apk first.1.apk now exists in Tasker/Factory/Kids
    If it is executed there will be an app called First with the icon you defined in your app drawer

    This allow you to run the app First on another Android device without installing Tasker on that device.

    ... Thom
     
    Dannydet likes this.

Share This Page

Loading...